mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
fix style tagList
This commit is contained in:
@@ -12,8 +12,10 @@ import CSSModules from 'browser/lib/CSSModules'
|
|||||||
|
|
||||||
const TagListItem = (({name, handleClickTagButton}) => {
|
const TagListItem = (({name, handleClickTagButton}) => {
|
||||||
return (
|
return (
|
||||||
<button onClick={(e) => handleClickTagButton(e, name)}>
|
<button styleName='tagList-item' onClick={(e) => handleClickTagButton(e, name)}>
|
||||||
{`# ${name}`}
|
<span styleName='tagList-item-name'>
|
||||||
|
{`# ${name}`}
|
||||||
|
</span>
|
||||||
</button>
|
</button>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
.tagList-item
|
||||||
|
display flex
|
||||||
|
width 100%
|
||||||
|
height 26px
|
||||||
|
background-color transparent
|
||||||
|
color $ui-inactive-text-color
|
||||||
|
padding 0
|
||||||
|
margin-bottom 5px
|
||||||
|
text-align left
|
||||||
|
border none
|
||||||
|
overflow ellipsis
|
||||||
|
font-size 12px
|
||||||
|
&:first-child
|
||||||
|
margin-top 0
|
||||||
|
&:hover
|
||||||
|
color $ui-text-color
|
||||||
|
background-color alpha($ui-button--active-backgroundColor, 20%)
|
||||||
|
transition background-color 0.15s
|
||||||
|
&:active
|
||||||
|
color $ui-text-color
|
||||||
|
background-color $ui-button--active-backgroundColor
|
||||||
|
|
||||||
|
.tagList-item-name
|
||||||
|
display block
|
||||||
|
flex 1
|
||||||
|
padding 0 25px
|
||||||
|
height 26px
|
||||||
|
line-height 26px
|
||||||
|
border-width 0 0 0 2px
|
||||||
|
border-style solid
|
||||||
|
border-color transparent
|
||||||
|
overflow hidden
|
||||||
|
text-overflow ellipsis
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,12 @@
|
|||||||
line-height 24px
|
line-height 24px
|
||||||
color $ui-inactive-text-color
|
color $ui-inactive-text-color
|
||||||
|
|
||||||
|
.tagList
|
||||||
|
absolute left right
|
||||||
|
bottom 37px
|
||||||
|
top 80px
|
||||||
|
overflow-y auto
|
||||||
|
|
||||||
.navToggle
|
.navToggle
|
||||||
navButtonColor()
|
navButtonColor()
|
||||||
display block
|
display block
|
||||||
|
|||||||
@@ -83,8 +83,12 @@ class SideNav extends React.Component {
|
|||||||
} else {
|
} else {
|
||||||
component = (
|
component = (
|
||||||
<div>
|
<div>
|
||||||
<p>Tags</p>
|
<div styleName='tag-title'>
|
||||||
{this.folderListComponent(data)}
|
<p>Tags</p>
|
||||||
|
</div>
|
||||||
|
<div styleName='tagList'>
|
||||||
|
{this.folderListComponent(data)}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user