Work on overall styles
This commit is contained in:
@@ -66,9 +66,18 @@ if (browser) {
|
||||
|
||||
|
||||
<!-- These are needed: h-full overflow-auto -->
|
||||
<div class="ae_journals">
|
||||
<div class="ae_journals h-full max-h-full overflow-auto flex flex-col gap-1">
|
||||
|
||||
<nav class="submenu flex flex-row flex-wrap items-center justify-center gap-1">
|
||||
<nav
|
||||
class="
|
||||
submenu
|
||||
flex flex-row flex-wrap
|
||||
items-center justify-center
|
||||
gap-1
|
||||
border-b-2
|
||||
pb-2
|
||||
"
|
||||
>
|
||||
<a
|
||||
href="/"
|
||||
class="btn btn-sm variant-ghost-surface hover:variant-filled-success"
|
||||
@@ -126,7 +135,7 @@ if (browser) {
|
||||
</section> -->
|
||||
|
||||
|
||||
<section class="main_content container p-1 pb-28">
|
||||
<section class="main_content flex-grow px-1 md:px-2 pb-28 overflow-auto">
|
||||
{@render children()}
|
||||
</section>
|
||||
|
||||
|
||||
@@ -141,7 +141,19 @@ async function create_journal() {
|
||||
|
||||
|
||||
<!-- Svelte Page for a AE Journals Module main page -->
|
||||
<section class="ae_journals md:container h-full mx-auto space-y-2">
|
||||
<section
|
||||
class="
|
||||
ae_journals
|
||||
mx-auto
|
||||
flex flex-col gap-1
|
||||
items-center
|
||||
min-h-full
|
||||
max-h-max
|
||||
min-w-full
|
||||
max-w-max
|
||||
space-y-2
|
||||
"
|
||||
>
|
||||
|
||||
<h1 class="h1 text-center">
|
||||
<!-- <Library size="1em" class="mx-1 inline-block" /> -->
|
||||
|
||||
@@ -101,12 +101,14 @@ async function handle_update_journal() {
|
||||
<section
|
||||
class="
|
||||
ae_journals__journal
|
||||
h-full mx-auto
|
||||
flex flex-col
|
||||
gap-1
|
||||
mx-auto
|
||||
flex flex-col flex-grow gap-1
|
||||
items-center
|
||||
min-h-full
|
||||
max-h-max
|
||||
min-w-full
|
||||
max-w-max
|
||||
space-y-2
|
||||
"
|
||||
>
|
||||
|
||||
@@ -117,7 +119,6 @@ async function handle_update_journal() {
|
||||
gap-1
|
||||
items-center justify-between
|
||||
border-gray-400
|
||||
border-t-2
|
||||
border-b
|
||||
py-2
|
||||
w-full
|
||||
|
||||
@@ -80,11 +80,14 @@ let lq__journal_entry_obj = $derived(liveQuery(async () => {
|
||||
<section
|
||||
class="
|
||||
ae_journals__journal_entry
|
||||
h-full mx-auto
|
||||
flex flex-col gap-1
|
||||
mx-auto
|
||||
flex flex-col flex-grow gap-1
|
||||
items-center
|
||||
min-h-full
|
||||
max-h-max
|
||||
min-w-full
|
||||
max-w-max
|
||||
space-y-2
|
||||
"
|
||||
>
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ $effect(() => {
|
||||
</script>
|
||||
|
||||
|
||||
<section class="svelte_component ae_section ae_view journal_entry_obj view__journal_entry_obj bg-white flex flex-col items-center justify-center rounded-lg w-full p-2 m-2 space-y-2" bind:clientHeight={$ae_loc.iframe_height_modal_body}>
|
||||
<section class="svelte_component ae_section ae_view journal_entry_obj view__journal_entry_obj bg-white flex flex-col flex-grow items-center justify-center rounded-lg w-full h-full p-2 m-2 space-y-2" bind:clientHeight={$ae_loc.iframe_height_modal_body}>
|
||||
|
||||
{#if $lq__journal_entry_obj}
|
||||
<header class="ae_header journal_entry__header flex flex-row flex-wrap gap-2 items-center justify-between w-full">
|
||||
@@ -203,7 +203,7 @@ $effect(() => {
|
||||
<button
|
||||
type="button"
|
||||
onclick={async () => {
|
||||
const element = document.getElementById('rendered_journal_entry_content');
|
||||
const element = document.getElementById(`rendered_journal_entry_content_${$lq__journal_entry_obj?.journal_entry_id}`);
|
||||
if (!element) {
|
||||
console.error('Element not found: rendered_journal_entry_content');
|
||||
alert('Failed to copy rich content.');
|
||||
@@ -407,7 +407,7 @@ $effect(() => {
|
||||
</header>
|
||||
|
||||
<div
|
||||
class="flex flex-row flex-wrap gap-1 items-center justify-evenly w-full max-w-sm"
|
||||
class="flex flex-row flex-wrap gap-1 items-center justify-evenly w-full max-w-sm "
|
||||
>
|
||||
<!-- Entry alert status -->
|
||||
<button
|
||||
@@ -728,16 +728,16 @@ $effect(() => {
|
||||
class:hidden={!$ae_loc.trusted_access || $journals_loc.entry.edit_kv[$lq__journal_entry_obj?.journal_entry_id]}
|
||||
class="w-full font-mono shadow-md rounded-lg border-gray-500 bg-gray-100 p-2"
|
||||
>
|
||||
<article
|
||||
class="prose"
|
||||
id="rendered_journal_entry_content">
|
||||
{@html $lq__journal_entry_obj?.content_md_html}
|
||||
</article>
|
||||
<!-- {@html marked.parse($lq__journal_entry_obj?.content)} -->
|
||||
<article
|
||||
class="prose"
|
||||
id="rendered_journal_entry_content_{$lq__journal_entry_obj?.journal_entry_id}">
|
||||
{@html $lq__journal_entry_obj?.content_md_html}
|
||||
</article>
|
||||
<!-- {@html marked.parse($lq__journal_entry_obj?.content)} -->
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="flex flex-col items-center justify-center w-full max-w-6xl"
|
||||
class="flex-grow flex flex-col items-center justify-center w-full max-w-6xl"
|
||||
class:hidden={!$journals_loc.entry.edit_kv[$lq__journal_entry_obj?.journal_entry_id] && $lq__journal_entry_obj?.content?.length}
|
||||
>
|
||||
|
||||
@@ -751,7 +751,7 @@ $effect(() => {
|
||||
}
|
||||
}}
|
||||
class:bg-orange-100={$ae_loc.edit_mode}
|
||||
class="w-full min-h-10 h-96 p-2 border border-gray-300 rounded-lg"
|
||||
class="flex-grow w-full min-h-10 h-full p-2 border border-gray-300 rounded-lg"
|
||||
placeholder="Edit journal entry content here..."
|
||||
></textarea>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user