From ccd93d0dce467e703faca0e282e2c414dc7d7c24 Mon Sep 17 00:00:00 2001 From: Tim deBoer Date: Tue, 6 Aug 2024 09:56:10 -0400 Subject: [PATCH] chore: light mode for delete button, remove drop down We cannot complete #376 because the issue to provide the component has stalled: https://github.com/containers/podman-desktop/issues/6898 In the meantime we can do two things: - Pick up light mode support by copying the current code from Podman Desktop. - Remove the menu property, so that we can remove the unused dependency on the the DropdownMenuItem component. (if we need dropdown support in the future, we should use/require the component) Related to #376. Part of #536. Fixes #371. Signed-off-by: Tim deBoer --- .../src/lib/upstream/DropDownMenuItem.svelte | 27 ---------- .../lib/upstream/ListItemButtonIcon.svelte | 51 ++++++++----------- 2 files changed, 22 insertions(+), 56 deletions(-) delete mode 100644 packages/frontend/src/lib/upstream/DropDownMenuItem.svelte diff --git a/packages/frontend/src/lib/upstream/DropDownMenuItem.svelte b/packages/frontend/src/lib/upstream/DropDownMenuItem.svelte deleted file mode 100644 index 6eaca0c3..00000000 --- a/packages/frontend/src/lib/upstream/DropDownMenuItem.svelte +++ /dev/null @@ -1,27 +0,0 @@ - - -{#if !hidden} - -
- - {#if typeof icon === 'string'} - - {:else} - - {/if} - {#if title}{title}{/if} - -
-{/if} diff --git a/packages/frontend/src/lib/upstream/ListItemButtonIcon.svelte b/packages/frontend/src/lib/upstream/ListItemButtonIcon.svelte index 2bc86c9c..ca7ce7d6 100644 --- a/packages/frontend/src/lib/upstream/ListItemButtonIcon.svelte +++ b/packages/frontend/src/lib/upstream/ListItemButtonIcon.svelte @@ -1,6 +1,5 @@ -{#if menu} - -