From 0873b12eedc20d108eb95e3c5bc77b31bbbc74d3 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Wed, 19 Feb 2025 18:58:20 +0000 Subject: [PATCH] Fix buttons/links for scanner modal in dark mode --- .../components/core_components.ex | 2 +- .../live/record_live/barcode_scanner_component.ex | 4 +++- priv/gettext/default.pot | 14 +++++++------- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/music_library_web/components/core_components.ex b/lib/music_library_web/components/core_components.ex index 6c9a5113..aa222e7f 100644 --- a/lib/music_library_web/components/core_components.ex +++ b/lib/music_library_web/components/core_components.ex @@ -232,7 +232,7 @@ defmodule MusicLibraryWeb.CoreComponents do "phx-submit-loading:opacity-75 rounded-md py-1 sm:py-2 px-2 sm:px-3 mt-2", "text-xs sm:text-sm font-semibold leading-6 ", "bg-zinc-900 hover:bg-zinc-800 dark:bg-zinc-100 dark:hover:bg-zinc-200", - "disabled:bg-zinc-300 dark:disabled:bg-zinc-300 disabled:active:text-white", + "disabled:bg-zinc-300 dark:disabled:bg-zinc-300 disabled:active:text-white dark:disabled:text-zinc-500", "text-white active:text-white/80 dark:text-zinc-900 dark:active:text-zinc-900/80", "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-zinc-600", @class diff --git a/lib/music_library_web/live/record_live/barcode_scanner_component.ex b/lib/music_library_web/live/record_live/barcode_scanner_component.ex index b503f64b..4c6dc450 100644 --- a/lib/music_library_web/live/record_live/barcode_scanner_component.ex +++ b/lib/music_library_web/live/record_live/barcode_scanner_component.ex @@ -86,7 +86,9 @@ defmodule MusicLibraryWeb.RecordLive.BarcodeScannerComponent do d="m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z" /> - {gettext("Open camera")} + + {gettext("Open camera")} + """ end diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 6089c34e..b44ed76f 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -343,13 +343,13 @@ msgstr "" msgid "Choose which format to import" msgstr "" -#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:116 +#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:118 #: lib/music_library_web/live/stats_live/index.html.heex:141 #, elixir-autogen, elixir-format msgid "Collected" msgstr "" -#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:115 +#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:117 #: lib/music_library_web/live/stats_live/index.html.heex:147 #, elixir-autogen, elixir-format msgid "Wishlisted" @@ -637,7 +637,7 @@ msgstr "" msgid "Scan one or more barcodes" msgstr "" -#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:89 +#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:90 #, elixir-autogen, elixir-format msgid "Open camera" msgstr "" @@ -647,12 +647,12 @@ msgstr "" msgid "Import releases" msgstr "" -#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:156 +#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:158 #, elixir-autogen, elixir-format msgid "Failed to search release for barcode %{number}" msgstr "" -#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:147 +#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:149 #, elixir-autogen, elixir-format msgid "No release found for barcode %{number}" msgstr "" @@ -662,12 +662,12 @@ msgstr "" msgid "Importing..." msgstr "" -#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:186 +#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:188 #, elixir-autogen, elixir-format msgid "Records imported successfully" msgstr "" -#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:114 +#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:116 #, elixir-autogen, elixir-format msgid "New" msgstr ""