Skip to content

Commit e7938f0

Browse files
committed
Align card header buttons to match header direction
1 parent cea38fa commit e7938f0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/components/common/collapsing-buttons.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { useSize } from '../../util/ui';
88
const VisibleButtonsContainer = styled.div`
99
overflow: hidden;
1010
display: flex;
11+
flex-direction: inherit;
1112
`;
1213

1314
const HiddenButtonsWrapper = styled.div`
@@ -40,6 +41,11 @@ const ButtonContainer = styled.div`
4041
4142
position: relative;
4243
display: flex;
44+
45+
/* Match the parent (typically card header) flex direction, but justify
46+
content in the opposite direction */
47+
flex-direction: inherit;
48+
justify-content: flex-start;
4349
`;
4450

4551
const MenuButton = styled(Icon)`

src/components/common/expand-shrink-button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const ExpandShrinkButton = (p: { expanded: boolean, onClick: () => void }
1111
onClick={p.onClick}
1212
title={
1313
p.expanded
14-
? "Shrink this card, so you can see other details"
15-
: "Expand this card to view it in more detail, hiding other details"
14+
? "Shrink this area, so you can see other details"
15+
: "Expand this area to view it in more detail, hiding other areas"
1616
}
1717
/>

0 commit comments

Comments
 (0)