Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
<script lang="ts">
import { MobileNavDrawerIcon } from '#lib/icons/index.js';
import { m } from '#lib/paraglide/messages.js';
import { cn } from '#lib/utils.js';
let {
showLabels = true,
onclick
}: {
showLabels?: boolean;
onclick: () => void;
} = $props();
</script>
<button
type="button"
class={cn(
'bg-primary text-primary-foreground shadow-md hover:bg-primary/90 focus-visible:ring-ring/50',
'flex-shrink-0 rounded-full transition-all duration-200 ease-out active:scale-95',
'flex items-center justify-center',
// Keep a large tap target but allow a slightly smaller footprint on the smallest screens.
showLabels ? 'size-13 sm:size-14' : 'size-12 sm:size-13'
)}
aria-label={m.mobile_navigation()}
{onclick}
data-testid="mobile-nav-open"
>
<MobileNavDrawerIcon class={showLabels ? 'size-8 sm:size-8.5' : 'size-7.5 sm:size-8'} aria-hidden="true" />
<span class="sr-only">{m.mobile_navigation()}</span>
</button>