UI styling/propType fixes

This commit is contained in:
Mark McDowall 2019-01-05 18:21:37 -08:00
parent 77816aebac
commit 44e9c77568
5 changed files with 17 additions and 13 deletions

View File

@ -19,12 +19,3 @@
pointer-events: none; pointer-events: none;
} }
@media only screen and (max-width: $breakpointSmall) {
.menuButton {
&::after {
margin-left: 0;
content: '\25BE';
}
}
}

View File

@ -22,6 +22,19 @@
justify-content: flex-end; justify-content: flex-end;
} }
.overflowMenuButton {
composes: menuButton from 'Components/Menu/ToolbarMenuButton.css';
}
.overflowMenuItemIcon { .overflowMenuItemIcon {
margin-right: 8px; margin-right: 8px;
} }
@media only screen and (max-width: $breakpointSmall) {
.overflowMenuButton {
&::after {
margin-left: 0;
content: '\25BE';
}
}
}

View File

@ -160,6 +160,7 @@ class PageToolbarSection extends Component {
!!overflowItems.length && !!overflowItems.length &&
<Menu> <Menu>
<ToolbarMenuButton <ToolbarMenuButton
className={styles.overflowMenuButton}
iconName={icons.OVERFLOW} iconName={icons.OVERFLOW}
text="More" text="More"
/> />
@ -179,14 +180,13 @@ class PageToolbarSection extends Component {
return ( return (
<MenuItem <MenuItem
key={label} key={label}
isDisabled={isDisabled} isDisabled={isDisabled || isSpinning}
{...otherProps} {...otherProps}
> >
<SpinnerIcon <SpinnerIcon
className={styles.overflowMenuItemIcon} className={styles.overflowMenuItemIcon}
name={iconName} name={iconName}
spinningName={spinningName} spinningName={spinningName}
isDisabled={isDisabled}
isSpinning={isSpinning} isSpinning={isSpinning}
/> />
{label} {label}

View File

@ -94,7 +94,7 @@ function EditReleaseProfileModalContent(props) {
<FormInputGroup <FormInputGroup
type={inputTypes.CHECK} type={inputTypes.CHECK}
name="includePreferredWhenRenaming" name="includePreferredWhenRenaming"
helpText="If Preferred Words is included in the naming format include the preferred words above" helpText="Include in {Preferred Words} renaming format"
{...includePreferredWhenRenaming} {...includePreferredWhenRenaming}
onChange={onInputChange} onChange={onInputChange}
/> />

View File

@ -10,7 +10,7 @@ import EditReleaseProfileModalContent from './EditReleaseProfileModalContent';
const newReleaseProfile = { const newReleaseProfile = {
required: '', required: '',
ignored: '', ignored: '',
preferred: '', preferred: [],
includePreferredWhenRenaming: false, includePreferredWhenRenaming: false,
tags: [] tags: []
}; };