actionListHeaderWrapper

This commit is contained in:
Nathan Bierema 2023-12-11 18:35:59 -05:00
parent 498e7aa1b4
commit 6f7649b169
2 changed files with 7 additions and 6 deletions

View File

@ -5,6 +5,7 @@ import {
actionListHeaderCss, actionListHeaderCss,
actionListHeaderSearchCss, actionListHeaderSearchCss,
actionListHeaderSelectorCss, actionListHeaderSelectorCss,
actionListHeaderWrapperCss,
} from './utils/createStylingFromTheme'; } from './utils/createStylingFromTheme';
const getActiveButtons = (hasSkippedActions: boolean): ('Sweep' | 'Commit')[] => const getActiveButtons = (hasSkippedActions: boolean): ('Sweep' | 'Commit')[] =>
@ -41,7 +42,7 @@ const ActionListHeader: FunctionComponent<Props> = ({
value={searchValue} value={searchValue}
/> />
{!hideMainButtons && ( {!hideMainButtons && (
<div {...styling('actionListHeaderWrapper')}> <div css={actionListHeaderWrapperCss}>
<RightSlider shown={hasStagedActions} styling={styling}> <RightSlider shown={hasStagedActions} styling={styling}>
<div css={actionListHeaderSelectorCss}> <div css={actionListHeaderSelectorCss}>
{getActiveButtons(hasSkippedActions).map((btn) => ( {getActiveButtons(hasSkippedActions).map((btn) => (

View File

@ -179,12 +179,12 @@ export const actionListHeaderSearchCss: Interpolation<Theme> = (theme) => ({
}, },
}); });
const getSheetFromColorMap = (map: ColorMap) => ({ export const actionListHeaderWrapperCss = css({
actionListHeaderWrapper: {
position: 'relative', position: 'relative',
height: '20px', height: '20px',
}, });
const getSheetFromColorMap = (map: ColorMap) => ({
actionPreview: { actionPreview: {
flex: 1, flex: 1,
display: 'flex', display: 'flex',