From 5e867d85580549cc81a60fcaebec270867713f78 Mon Sep 17 00:00:00 2001 From: ThaUnknown <6506529+ThaUnknown@users.noreply.github.com> Date: Sun, 29 Jun 2025 00:04:39 +0200 Subject: [PATCH] fix: pad sidebar on mac --- package.json | 2 +- src/lib/components/ui/sidebar/sidebarlist.svelte | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2ad4f9a..73e6377 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ui", - "version": "6.4.9", + "version": "6.4.10", "license": "BUSL-1.1", "private": true, "packageManager": "pnpm@9.14.4", diff --git a/src/lib/components/ui/sidebar/sidebarlist.svelte b/src/lib/components/ui/sidebar/sidebarlist.svelte index 608b170..ede1120 100644 --- a/src/lib/components/ui/sidebar/sidebarlist.svelte +++ b/src/lib/components/ui/sidebar/sidebarlist.svelte @@ -20,7 +20,7 @@ import client from '$lib/modules/auth/client' import { lockedState, idleState, activityState } from '$lib/modules/idle' import native from '$lib/modules/native' - import { cn } from '$lib/utils' + import { cn, highEntropyValues } from '$lib/utils' const auth = client.hasAuth @@ -29,12 +29,16 @@ let visibilityState: DocumentVisibilityState $: active = ($lockedState === 'locked' || visibilityState === 'hidden' || ($idleState === 'active' && $activityState === 'active')) && $page.route.id !== '/app/player' + + let isMac = false + + if (highEntropyValues) highEntropyValues.then(({ platform }) => { isMac = platform === 'MacOS' })