diff --git a/src/app.css b/src/app.css
index 8fea2b5..f7e32e3 100644
--- a/src/app.css
+++ b/src/app.css
@@ -55,11 +55,12 @@
/* Content */
main {
- @apply max-w-full flex;
+ @apply max-w-full flex mb-2;
}
- main.blog {
- max-height: calc(100vh - 130px);
+ /* To scroll columns independently */
+ main.publication {
+ /* max-height: calc(100vh - 130px); */
}
main.main-leather,
@@ -219,3 +220,10 @@
@apply bg-primary-0 dark:bg-primary-1000 text-gray-800 dark:text-gray-300;
}
}
+
+.line-ellipsis {
+ max-width: 100%;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
\ No newline at end of file
diff --git a/src/lib/components/Preview.svelte b/src/lib/components/Preview.svelte
index 093a640..b2ec5f4 100644
--- a/src/lib/components/Preview.svelte
+++ b/src/lib/components/Preview.svelte
@@ -4,6 +4,7 @@
import { CaretDownSolid, CaretUpSolid, EditOutline } from 'flowbite-svelte-icons';
import Self from './Preview.svelte';
import { contentParagraph, sectionHeading } from '$lib/snippets/PublicationSnippets.svelte';
+ import BlogHeader from "./blog/BlogHeader.svelte";
// TODO: Fix move between parents.
@@ -93,6 +94,10 @@
}
});
+ function getBlogEvent(index: number) {
+ return blogEntries[index][1];
+ }
+
function byline(rootId: string, index: number) {
console.log(rootId, index, blogEntries);
const event = blogEntries[index][1];
@@ -198,7 +203,7 @@
{#snippet sectionHeading(title: string, depth: number)}
{@const headingLevel = Math.min(depth + 1, 6)}
{@const className = $pharosInstance.isFloatingTitle(rootId) ? 'discrete' : 'h-leather'}
-
+
- -
-{/snippet} - {#snippet contentParagraph(content: string, publicationType: string)} {#if publicationType === 'novel'}
@@ -294,17 +293,13 @@
{:else}
- {#if publicationType === 'blog' && depth === 1}
- {@render coverImage(rootId, index, depth)}
- {@render sectionHeading(title!, depth)}
- {@render blogMetadata(rootId, index)}
- {:else}
+ {#if !(publicationType === 'blog' && depth === 1)}
{@render sectionHeading(title!, depth)}
{/if}
{/if}
{#if publicationType === 'blog' && depth === 1}
- {@render readMoreLink(rootId, index)}
+
Social column
+