Fix buttons/links for scanner modal in dark mode

This commit is contained in:
Claudio Ortolina
2025-02-19 18:58:20 +00:00
parent 4ca6421767
commit 0873b12eed
3 changed files with 11 additions and 9 deletions
@@ -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
@@ -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"
/>
</svg>
<span class="mt-2 block text-sm font-semibold text-zinc-900">{gettext("Open camera")}</span>
<span class="mt-2 block text-sm font-semibold text-zinc-900 dark:text-zinc-400">
{gettext("Open camera")}
</span>
</button>
"""
end
+7 -7
View File
@@ -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 ""