Skip to content

Commit a415924

Browse files
committed
fix: prevent tag panel title from collapsing on small viewports
1 parent 0d92ab9 commit a415924

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/components/TagViewHeader/index.tsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,11 @@ type Props = {
1313
title: string
1414
}
1515

16-
const TagViewHeader = (props: Props) => {
17-
const {allowCreate, light, title} = props
18-
19-
// Redux
16+
const TagViewHeader = ({allowCreate, light, title}: Props) => {
2017
const dispatch = useDispatch()
2118
const tagsCreating = useTypedSelector(state => state.tags.creating)
2219
const tagsFetching = useTypedSelector(state => state.tags.fetching)
2320

24-
// Callbacks
2521
const handleTagCreate = () => {
2622
dispatch(DIALOG_ACTIONS.showTagCreate())
2723
}
@@ -35,6 +31,7 @@ const TagViewHeader = (props: Props) => {
3531
style={{
3632
background: light ? hues.gray?.[900].hex : black.hex,
3733
borderBottom: `1px solid ${hues.gray?.[900].hex}`,
34+
flexShrink: 0,
3835
height: `${PANEL_HEIGHT}px`
3936
}}
4037
>

0 commit comments

Comments
 (0)