Skip to content

Commit 752da0e

Browse files
committed
adjust font size on desktop
1 parent 68e8f4b commit 752da0e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lab-dash-frontend",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
44
"private": true,
55
"scripts": {
66
"dev": "vite --host",

frontend/src/components/dashboard/base-items/apps/AppShortcut.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ export const AppShortcut = ({ url, name, iconName, showLabel, editMode }: Props)
1818

1919
// Calculate font size based on name length
2020
const fontSize = useMemo(() => {
21-
if (!name) return isMobile ? '1rem' : '1.2rem';
21+
if (!name) return '1rem';
2222

2323
// Adjust font size based on text length
2424
if (name.length > 20) return isMobile ? '0.7rem' : '0.8rem';
2525
if (name.length > 15) return isMobile ? '0.8rem' : '0.9rem';
2626
if (name.length > 10) return isMobile ? '0.9rem' : '1rem';
2727

28-
return isMobile ? '1rem' : '1.2rem';
28+
return '1rem';
2929
}, [name, isMobile]);
3030

3131
// Content to render inside the shortcut component
@@ -67,7 +67,7 @@ export const AppShortcut = ({ url, name, iconName, showLabel, editMode }: Props)
6767
WebkitLineClamp: 2,
6868
WebkitBoxOrient: 'vertical',
6969
wordBreak: 'break-word',
70-
maxWidth: '100%',
70+
width: '100%',
7171
lineHeight: 1.2
7272
}}
7373
>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lab-dash",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
44
"description": "This is an open-source user interface designed to manage your server and homelab",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)