1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-24 13:43:12 +02:00

Fixed the icons in the board headers

This commit is contained in:
Jesús Espino 2020-11-02 11:17:50 +01:00
parent a71f7d6b13
commit f0f455c61d
2 changed files with 18 additions and 12 deletions

View File

@ -32,6 +32,13 @@
> div {
margin-right: 5px;
}
.IconButton{
background-color: unset;
&:hover {
background-color: rgba(var(--main-fg), 0.1);
}
}
}

View File

@ -20,6 +20,7 @@ import HideIcon from '../widgets/icons/hide'
import ShowIcon from '../widgets/icons/show'
import DeleteIcon from '../widgets/icons/delete'
import Button from '../widgets/buttons/button'
import IconButton from '../widgets/buttons/iconButton'
import BoardCard from './boardCard'
import {BoardColumn} from './boardColumn'
@ -308,7 +309,7 @@ class BoardComponent extends React.Component<Props, State> {
<Button>{`${group.cards.length}`}</Button>
<div className='octo-spacer'/>
<MenuWrapper>
<Button><OptionsIcon/></Button>
<IconButton icon={<OptionsIcon/>}/>
<Menu>
<Menu.Text
id='hide'
@ -318,11 +319,10 @@ class BoardComponent extends React.Component<Props, State> {
/>
</Menu>
</MenuWrapper>
<Button
onClick={() => {
this.addCard(undefined)
}}
><AddIcon/></Button>
<IconButton
icon={<AddIcon/>}
onClick={() => this.addCard(undefined)}
/>
</div>
)
}
@ -372,7 +372,7 @@ class BoardComponent extends React.Component<Props, State> {
<Button>{`${group.cards.length}`}</Button>
<div className='octo-spacer'/>
<MenuWrapper>
<Button><OptionsIcon/></Button>
<IconButton icon={<OptionsIcon/>}/>
<Menu>
<Menu.Text
id='hide'
@ -397,11 +397,10 @@ class BoardComponent extends React.Component<Props, State> {
)}
</Menu>
</MenuWrapper>
<Button
onClick={() => {
this.addCard(group.option.id)
}}
><AddIcon/></Button>
<IconButton
icon={<AddIcon/>}
onClick={() => this.addCard(group.option.id)}
/>
</div>
)
}