Skip to content

Commit

Permalink
Fix app buttons clipping with app's content (#5316)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloud11PL committed Dec 11, 2024
1 parent 1480eac commit 3c4462a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-mice-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

App buttons no longer clip with app contents
11 changes: 6 additions & 5 deletions src/components/AppLayout/TopNav/TopNavWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import React from "react";

import { topBarHeight, topBarHeightSubtitle } from "../consts";

export const TopNavWrapper: React.FC<{ withoutBorder?: boolean; hasSubtitle?: boolean }> = ({
children,
withoutBorder,
hasSubtitle,
}) => (
export const TopNavWrapper: React.FC<{
withoutBorder?: boolean;
hasSubtitle?: boolean;
}> = ({ children, withoutBorder, hasSubtitle }) => (
<Box
display={hasSubtitle ? "block" : "flex"}
alignItems="center"
paddingX={6}
paddingY={5}
borderBottomWidth={withoutBorder ? 0 : 1}
Expand Down

0 comments on commit 3c4462a

Please sign in to comment.