Skip to content

Commit

Permalink
feat: fixed size of command palette on large device (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushSehrawat authored Dec 29, 2023
1 parent 2161e4f commit c3326dd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@
</div>

<Command.Dialog class="font-primary" bind:open>
<Command.Input class="text-base" placeholder="Type a command or search..." />
<Command.Input class="text-base lg:text-lg" placeholder="Type a command or search..." />
<Command.List>
<Command.Empty>No results found.</Command.Empty>
<Command.Empty class="lg:text-base">No results found.</Command.Empty>
<Command.Group heading="Suggestions">
<Command.Item
class="lg:text-base"
onSelect={async () => {
open = false;
await goto('/settings');
Expand All @@ -57,6 +58,7 @@
<span>Settings</span>
</Command.Item>
<Command.Item
class="lg:text-base"
onSelect={async () => {
open = false;
await goto('/status');
Expand All @@ -69,6 +71,7 @@
<Command.Separator />
<Command.Group heading="Settings">
<Command.Item
class="lg:text-base"
onSelect={async () => {
open = false;
await goto('/settings/general');
Expand All @@ -78,6 +81,7 @@
<span>General</span>
</Command.Item>
<Command.Item
class="lg:text-base"
onSelect={async () => {
open = false;
await goto('/settings/plex');
Expand All @@ -87,6 +91,7 @@
<span>Plex</span>
</Command.Item>
<Command.Item
class="lg:text-base"
onSelect={async () => {
open = false;
await goto('/settings/content');
Expand All @@ -96,6 +101,7 @@
<span>Content</span>
</Command.Item>
<Command.Item
class="lg:text-base"
onSelect={async () => {
open = false;
await goto('/settings/about');
Expand Down

0 comments on commit c3326dd

Please sign in to comment.