fix unreadable top source in dark mode

This commit is contained in:
Markbeep
2025-03-15 00:58:30 +01:00
parent 39b26732e9
commit 43ae457002
4 changed files with 12 additions and 7 deletions

View File

@@ -170,12 +170,6 @@ async def add_request(
except sa.exc.IntegrityError:
pass # ignore if already exists
if quality_config.get_auto_download(session) and user.is_above(GroupEnum.trusted):
# start querying and downloading if auto download is enabled
background_task.add_task(
background_start_query, asin=asin, requester_username=user.username
)
background_task.add_task(
send_all_notifications,
event_type=EventEnum.on_new_request,
@@ -183,6 +177,12 @@ async def add_request(
book_asin=asin,
)
if quality_config.get_auto_download(session) and user.is_above(GroupEnum.trusted):
# start querying and downloading if auto download is enabled
background_task.add_task(
background_start_query, asin=asin, requester_username=user.username
)
if audible_regions.get(region) is None:
raise HTTPException(status_code=400, detail="Invalid region")
if query:

View File

@@ -1,6 +1,9 @@
@import "tailwindcss";
@plugin "daisyui";
/* Enables dark mode specific styling with "dark:" */
@custom-variant dark (&:where(.dark, .dark *));
@plugin "daisyui/theme" {
name: "nord";
default: true;

View File

@@ -27,12 +27,14 @@
"light-dark-toggle",
)) {
elem.classList.add("DARKCLASS");
document.documentElement.classList.add("dark");
}
} else {
for (const elem of document.getElementsByClassName(
"light-dark-toggle",
)) {
elem.classList.remove("DARKCLASS");
document.documentElement.classList.remove("dark");
}
}
};

View File

@@ -39,7 +39,7 @@
<tbody>
{% for source in sources %}
<tr
class="text-xs lg:text-sm {% if loop.index==1 %}bg-success{% endif %}"
class="text-xs lg:text-sm {% if loop.index==1 %}bg-success dark:text-gray-700{% endif %}"
>
<th>{{ loop.index }}</th>