Skip to content

Commit

Permalink
fix(ModalPageHeader): Широкий сепаратор в режиме regular (#6726)
Browse files Browse the repository at this point in the history
После f7c9098 мы стали рисовать сепаратор независимо от платформы, но судя по дизайну широкий сепаратор нужен только в режиме regular.
  • Loading branch information
mendrew authored and actions-user committed Mar 26, 2024
1 parent 133e1f4 commit 3f29f22
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ModalPageHeader = ({
...restProps
}: ModalPageHeaderProps) => {
const platform = usePlatform();
const { isDesktop } = useAdaptivityWithJSMediaQueries();
const { isDesktop, sizeX } = useAdaptivityWithJSMediaQueries();
const { labelId } = React.useContext(ModalPageContext);

return (
Expand All @@ -54,7 +54,7 @@ export const ModalPageHeader = ({
>
{children}
</PanelHeader>
{!noSeparator && <Separator wide />}
{!noSeparator && <Separator wide={sizeX === 'regular'} />}
</div>
);
};

0 comments on commit 3f29f22

Please sign in to comment.