Skip to content

Commit adaee4c

Browse files
committed
Fix storage name text overflow
1 parent eef8ba5 commit adaee4c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/organisms/NoteStorageNavigator.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const NoteStorageNavigator = ({ storage }: NoteStorageNavigatorProps) => {
224224
<NavigatorContainer>
225225
{!generalShowAppNavigator && <WindowControlSpacer />}
226226
<TopButton onClick={openStorageContextMenu}>
227-
<StorageName>{storage.name}</StorageName>
227+
<div className='topButtonLabel'>{storage.name}</div>
228228
<Icon path={mdiChevronDown} />
229229
</TopButton>
230230

@@ -286,17 +286,17 @@ const TopButton = styled.button`
286286
color: ${({ theme }) => theme.navItemColor};
287287
background-color: transparent;
288288
background-color: ${({ theme }) => theme.navItemBackgroundColor};
289+
& > .topButtonLabel {
290+
font-size: 18px;
291+
font-weight: 600;
292+
padding-right: 10px;
293+
${textOverflow}
294+
}
289295
&:hover {
290296
color: ${({ theme }) => theme.navItemActiveColor};
291297
}
292298
`
293299

294-
const StorageName = styled.div`
295-
font-size: 18px;
296-
font-weight: 600;
297-
padding-right: 10px;
298-
`
299-
300300
const SearchButton = styled.button`
301301
margin: 0 8px;
302302
height: 34px;

0 commit comments

Comments
 (0)