Saving work...
This commit is contained in:
@@ -471,6 +471,31 @@ async function handle_update_journal() {
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- Select hover max height options (Tailwind CSS) -->
|
||||
<div>
|
||||
<span class="text-sm text-gray-500 hidden sm:inline">
|
||||
Journal Entry List Hover Max Height:
|
||||
</span>
|
||||
<select
|
||||
bind:value={$journals_slct.tmp_journal_obj.cfg_json.entry_li_hover_max_height}
|
||||
onchange={(event) => {
|
||||
$journals_slct.tmp_journal_obj.cfg_json.entry_li_hover_max_height = event.target.value;
|
||||
console.log('Selected max height:', $journals_slct.tmp_journal_obj.cfg_json.entry_li_hover_max_height);
|
||||
}}
|
||||
class="btn btn-sm variant-ghost-surface hover:variant-filled-surface transition text-xs w-full mb-2 max-w-48"
|
||||
title="Select maximum height for journal entries in the list"
|
||||
>
|
||||
<option value="">Default (auto)</option>
|
||||
<!-- <option value="none">None (no limit)</option> -->
|
||||
<option value="hover:max-h-8">Small (8)</option>
|
||||
<option value="hover:max-h-16">Medium (16)</option>
|
||||
<option value="hover:max-h-32">Large (32)</option>
|
||||
<option value="hover:max-h-96">Extra Large (96)</option>
|
||||
<option value="hover:max-h-full">Full (no limit)</option>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- Select color scheme for the journal entries -->
|
||||
<!-- Should select from the common Tailwind CSS options. Examples: slate, blue, gray, green, orange, red, yellow, etc. -->
|
||||
<!-- Saves to cfg_json.color_scheme -->
|
||||
|
||||
@@ -435,6 +435,7 @@ $effect(() => {
|
||||
hover:z-10 hover:h-auto hover:max-h-full
|
||||
hover:bg-blue-100 hover:border-blue-500 dark:hover:border-blue-500
|
||||
{$journals_slct.journal_obj.cfg_json.entry_li_max_height ? `${$journals_slct.journal_obj.cfg_json.entry_li_max_height} overflow-scroll` : ''}
|
||||
{$journals_slct.journal_obj.cfg_json.entry_li_hover_max_height ? `${$journals_slct.journal_obj.cfg_json.entry_li_hover_max_height}` : ''}
|
||||
"
|
||||
>
|
||||
{@html journals_journal_entry_obj.content}
|
||||
|
||||
Reference in New Issue
Block a user