mirror of
https://github.com/markbeep/AudioBookRequest.git
synced 2026-01-04 20:50:13 -06:00
fix unreadable top source in dark mode
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user