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

View File

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