Improves helper text for profile options

This commit is contained in:
Kieran Eglin 2024-03-02 12:52:02 -08:00
parent b9983815cd
commit fcd5387574
No known key found for this signature in database
GPG key ID: 193984967FCF432D
2 changed files with 25 additions and 10 deletions

View file

@ -432,7 +432,7 @@ defmodule PinchflatWeb.CoreComponents do
def label(assigns) do def label(assigns) do
~H""" ~H"""
<label for={@for} class="mt-5 mb-2 block text-md font-medium text-black dark:text-white"> <label for={@for} class="mt-5 mb-2 inline-block text-md font-medium text-black dark:text-white">
<%= render_slot(@inner_block) %> <%= render_slot(@inner_block) %>
</label> </label>
""" """

View file

@ -22,10 +22,15 @@
help="Must end with .{{ ext }}. See below for more details. I promise the default is good for most cases (required)" help="Must end with .{{ ext }}. See below for more details. I promise the default is good for most cases (required)"
/> />
<h3 class="mb-4 mt-8 text-2xl text-black dark:text-white"> <h3 class="mt-8 text-2xl text-black dark:text-white">
Subtitle Options Subtitle Options
</h3> </h3>
<.input field={f[:download_subs]} type="toggle" label="Download Subtitles" /> <.input
field={f[:download_subs]}
type="toggle"
label="Download Subtitles"
help="Downloads subtitle files alongside media file"
/>
<.input <.input
field={f[:download_auto_subs]} field={f[:download_auto_subs]}
type="toggle" type="toggle"
@ -45,10 +50,15 @@
help="Use commas for multiple languages (eg: en,de)" help="Use commas for multiple languages (eg: en,de)"
/> />
<h3 class="mb-4 mt-8 text-2xl text-black dark:text-white"> <h3 class="mt-8 text-2xl text-black dark:text-white">
Thumbnail Options Thumbnail Options
</h3> </h3>
<.input field={f[:download_thumbnail]} type="toggle" label="Download Thumbnail" /> <.input
field={f[:download_thumbnail]}
type="toggle"
label="Download Thumbnail"
help="Downloads thumbnail alongside media file"
/>
<.input <.input
field={f[:embed_thumbnail]} field={f[:embed_thumbnail]}
type="toggle" type="toggle"
@ -56,10 +66,15 @@
help="Embeds thumbnail in the video file itself, if supported (recommended)" help="Embeds thumbnail in the video file itself, if supported (recommended)"
/> />
<h3 class="mb-4 mt-8 text-2xl text-black dark:text-white"> <h3 class="mt-8 text-2xl text-black dark:text-white">
Metadata Options Metadata Options
</h3> </h3>
<.input field={f[:download_metadata]} type="toggle" label="Download Metadata" /> <.input
field={f[:download_metadata]}
type="toggle"
label="Download Metadata"
help="Downloads metadata file alongside media file"
/>
<.input <.input
field={f[:embed_metadata]} field={f[:embed_metadata]}
type="toggle" type="toggle"
@ -67,7 +82,7 @@
help="Embeds metadata in the video file itself, if supported (recommended)" help="Embeds metadata in the video file itself, if supported (recommended)"
/> />
<h3 class="mb-4 mt-8 text-2xl text-black dark:text-white"> <h3 class="mt-8 text-2xl text-black dark:text-white">
Release Format Options Release Format Options
</h3> </h3>
@ -85,7 +100,7 @@
label="Include Livestreams?" label="Include Livestreams?"
/> />
<h3 class="mb-4 mt-8 text-2xl text-black dark:text-white"> <h3 class="mt-8 text-2xl text-black dark:text-white">
Quality Options Quality Options
</h3> </h3>
@ -94,7 +109,7 @@
options={friendly_resolution_options()} options={friendly_resolution_options()}
type="select" type="select"
label="Preferred Resolution" label="Preferred Resolution"
help="Will grab the closest available resolution if your preferred is not available" help="Will grab the closest available resolution if your preferred is not available. Setting to 'Audio Only' negates embedding options."
/> />
<.button class="my-10 sm:mb-7.5 w-full sm:w-auto">Save Media profile</.button> <.button class="my-10 sm:mb-7.5 w-full sm:w-auto">Save Media profile</.button>