diff options
| author | Oliver <oliver@mohlin.dev> | 2025-09-25 06:21:48 +0200 |
|---|---|---|
| committer | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-09-25 18:21:17 +0200 |
| commit | 50626c132965cf5ae09deba05a0ef0c330eaf64a (patch) | |
| tree | f46b540d89915e5075f798c01ad862e4401fa904 | |
| parent | e0a8f652179fd765d7622511f9df51f8181839a0 (diff) | |
| download | mullvadvpn-50626c132965cf5ae09deba05a0ef0c330eaf64a.tar.xz mullvadvpn-50626c132965cf5ae09deba05a0ef0c330eaf64a.zip | |
Fix device info in main header overflowing with long text
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/renderer/components/app-main-header/components/AppMainHeaderDeviceInfo.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/desktop/packages/mullvad-vpn/src/renderer/components/app-main-header/components/AppMainHeaderDeviceInfo.tsx b/desktop/packages/mullvad-vpn/src/renderer/components/app-main-header/components/AppMainHeaderDeviceInfo.tsx index 3af5718bbf..f1a52371c9 100644 --- a/desktop/packages/mullvad-vpn/src/renderer/components/app-main-header/components/AppMainHeaderDeviceInfo.tsx +++ b/desktop/packages/mullvad-vpn/src/renderer/components/app-main-header/components/AppMainHeaderDeviceInfo.tsx @@ -17,6 +17,10 @@ const StyledDeviceLabel = styled(FootnoteMini)({ textOverflow: 'ellipsis', }); +const StyledFlex = styled(Flex)({ + width: '100%', +}); + export const AppMainHeaderDeviceInfo = () => { const deviceName = useSelector((state) => state.account.deviceName); const accountExpiry = useSelector((state) => state.account.expiry); @@ -28,7 +32,7 @@ export const AppMainHeaderDeviceInfo = () => { : ''; return ( - <Flex $gap="large" $margin={{ top: 'tiny' }}> + <StyledFlex $gap="large" $margin={{ top: 'tiny' }}> <StyledDeviceLabel color="whiteAlpha80"> {sprintf( // TRANSLATORS: A label that will display the newly created device name to inform the user @@ -48,6 +52,6 @@ export const AppMainHeaderDeviceInfo = () => { })} </StyledTimeLeftLabel> )} - </Flex> + </StyledFlex> ); }; |
