Skip to content

Self-hosted homelab infrastructure visualizer — interactive network diagram with live status monitoring

fixed font casing and increased slider thumb size

findthelorax8859893e4222
diff --git a/frontend/src/components/modals/GroupRectModal.module.css b/frontend/src/components/modals/GroupRectModal.module.css
index 5670a84..87c63a3 100644
--- a/frontend/src/components/modals/GroupRectModal.module.css
+++ b/frontend/src/components/modals/GroupRectModal.module.css
@@ -16,27 +16,27 @@
}
/* Ensure the slider bar is visible on dark backgrounds */
-.slider-thumb-sm {
+.slider-thumb {
background: transparent;
}
/* Custom slider thumb for smaller circle */
-.slider-thumb-sm::-webkit-slider-thumb {
- width: 10px;
- height: 10px;
+.slider-thumb::-webkit-slider-thumb {
+ width: 13px;
+ height: 13px;
border-radius: 50%;
background: #00d4ff;
border: 2px solid #21262d;
}
-.slider-thumb-sm::-moz-range-thumb {
- width: 10px;
- height: 10px;
+.slider-thumb::-moz-range-thumb {
+ width: 13px;
+ height: 13px;
border-radius: 50%;
background: #00d4ff;
border: 2px solid #21262d;
}
-.slider-thumb-sm::-ms-thumb {
- width: 10px;
- height: 10px;
+.slider-thumb::-ms-thumb {
+ width: 13px;
+ height: 13px;
border-radius: 50%;
background: #00d4ff;
border: 2px solid #21262d;
diff --git a/frontend/src/components/modals/GroupRectModal.tsx b/frontend/src/components/modals/GroupRectModal.tsx
index fb5faa0..a247eb5 100644
--- a/frontend/src/components/modals/GroupRectModal.tsx
+++ b/frontend/src/components/modals/GroupRectModal.tsx
@@ -89,6 +89,8 @@ const TEXT_POSITIONS: { value: TextPosition; label: string }[] = [
{ value: 'bottom-right', label: '↘' },
]
+const getFontLabel = (value: string) => FONTS.find((f) => f.value === value)?.label ?? value
+
interface GroupRectModalProps {
open: boolean
onClose: () => void
@@ -138,12 +140,19 @@ export function GroupRectModal({ open, onClose, onSubmit, onDelete, initial, tit
{/* Font */}
<div className="flex flex-col gap-1.5">
<Label className="text-xs text-muted-foreground">Font</Label>
- <Select value={form.font} onValueChange={(v: string | null) => set('font', v ?? 'inter')}>
+
+ <Select
+ value={form.font}
+ onValueChange={(v: string | null) => set('font', v ?? 'inter')}
+ >
<SelectTrigger
className={`bg-[#21262d] border-[#30363d] text-sm h-8 cursor-pointer ${modalStyles['modal-interactive']} ${modalStyles['modal-radius']}`}
aria-label="Font selector"
>
- <SelectValue />
+ {/* ✅ show human-readable label instead of raw value */}
+ <SelectValue>
+ {getFontLabel(form.font)}
+ </SelectValue>
</SelectTrigger>
<SelectContent className="bg-[#21262d] border-[#30363d]">
@@ -235,7 +244,7 @@ export function GroupRectModal({ open, onClose, onSubmit, onDelete, initial, tit
max={100}
value={alpha}
onChange={(e) => set(key, rgbaToHex8(hex6, Number(e.target.value)))}
- className={`w-full h-1 cursor-pointer mt-2 ${styles['slider-thumb-sm']} ${styles['slider-accent']}`}
+ className={`w-full h-1 cursor-pointer mt-2 ${styles['slider-thumb']} ${styles['slider-accent']}`}
title={`Opacity: ${alpha}%`}
style={{ accentColor: '#00d4ff' }}
/>