1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

Hide device name in navigation on smaller devices

This commit is contained in:
Jip Fr 2023-11-26 14:40:35 +01:00
parent 50b625c604
commit 91a8b07257

View file

@ -71,7 +71,7 @@ export function UserAvatar(props: {
bottom={props.bottom} bottom={props.bottom}
/> />
{props.withName && bufferSeed ? ( {props.withName && bufferSeed ? (
<span> <span className="hidden md:inline-block">
{deviceName.length >= 20 {deviceName.length >= 20
? `${deviceName.slice(0, 20 - 1)}` ? `${deviceName.slice(0, 20 - 1)}`
: deviceName} : deviceName}