Fixed: Consistent icon position for toolbar buttons

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
Qstick 2019-03-26 21:58:16 -04:00
parent a4d2ed6f31
commit 180763da69
4 changed files with 12 additions and 4 deletions

View File

@ -1,11 +1,16 @@
.menuButton { .menuButton {
composes: menuButton from '~./MenuButton.css'; composes: menuButton from '~./MenuButton.css';
padding-top: 4px;
width: $toolbarButtonWidth; width: $toolbarButtonWidth;
height: $toolbarHeight; height: $toolbarHeight;
text-align: center; text-align: center;
} }
.labelContainer {
composes: labelContainer from '~Components/Page/Toolbar/PageToolbarButton.css';
}
.label { .label {
composes: label from '~Components/Page/Toolbar/PageToolbarButton.css'; composes: label from '~Components/Page/Toolbar/PageToolbarButton.css';
} }

View File

@ -22,10 +22,12 @@ function ToolbarMenuButton(props) {
size={21} size={21}
/> />
<div className={styles.labelContainer}>
<div className={styles.label}> <div className={styles.label}>
{text} {text}
</div> </div>
</div> </div>
</div>
</MenuButton> </MenuButton>
); );
} }

View File

@ -1,6 +1,7 @@
.toolbarButton { .toolbarButton {
composes: link from '~Components/Link/Link.css'; composes: link from '~Components/Link/Link.css';
padding-top: 4px;
width: $toolbarButtonWidth; width: $toolbarButtonWidth;
text-align: center; text-align: center;
@ -21,7 +22,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
min-height: 16px; height: 24px;
} }
.label { .label {

View File

@ -6,7 +6,7 @@
.section { .section {
display: flex; display: flex;
align-items: center; align-items: stretch;
flex-grow: 1; flex-grow: 1;
} }