fix issue where router icons for addresses on server list get squashed at certain resolutions

This commit is contained in:
Sky Mulley
2026-10-06 02:57:14 +01:00
parent db041998d1
commit c2d979702b
2 changed files with 2 additions and 2 deletions
@@ -37,7 +37,7 @@ function Address({ model }: PartProps) {
return (
<div className='flex-1 ml-4 lg:block lg:col-span-2 hidden'>
<div className='flex justify-center'>
<EthernetPort size='1em' className='inline-block text-muted-foreground' />
<EthernetPort size='1em' className='inline-block shrink-0 text-muted-foreground' />
<p className='text-sm text-muted-foreground ml-2'>{model.address}</p>
</div>
</div>
@@ -3,7 +3,7 @@ import type { LucideIcon } from 'lucide-react';
import { cn } from '@/lib/cn';
export const ServerRowMetricIcon = ({ $alarm, icon: IconComponent }: { $alarm: boolean; icon: LucideIcon }) => (
<IconComponent size={'1em'} className={cn('inline-block', $alarm ? 'text-destructive' : 'text-muted-foreground')} />
<IconComponent size={'1em'} className={cn('inline-block shrink-0', $alarm ? 'text-destructive' : 'text-muted-foreground')} />
);
export function ServerRowMetricDescription({ $alarm, children }: { $alarm: boolean; children: React.ReactNode }) {