fix: show titles if in compact mode

This commit is contained in:
Xylight committed 2024-04-29 18:46:48 -07:00
1 parent 08c7126477
commit 4cf151a7c3
3 files changed
+9 -6

No files matched your search

+4 -2
View File
@@ -31,11 +31,13 @@
$: type = mediaType(post.post.url, view) $: type = mediaType(post.post.url, view)
$: hideTitle = $: hideTitle =
$userSettings.posts.deduplicateEmbed && $userSettings.posts.deduplicateEmbed &&
post.post.embed_title == post.post.name post.post.embed_title == post.post.name &&
view != 'compact'
$: hideBody = $: hideBody =
$userSettings.posts.deduplicateEmbed && $userSettings.posts.deduplicateEmbed &&
post.post.embed_description == post.post.body post.post.embed_description == post.post.body &&
view != 'compact'
</script> </script>
<Material <Material
+2 -3
View File
@@ -16,7 +16,7 @@
if (top) return '!pt-22' if (top) return '!pt-22'
else return '!pb-22' else return '!pb-22'
} else { } else {
if (!content) return '' if (!content) return '!pt-4'
if (top) return '!pt-24' if (top) return '!pt-24'
else return '!pb-24' else return '!pb-24'
@@ -80,8 +80,7 @@
/> />
<slot <slot
name="suffix" name="suffix"
class="max-xl:hidden w-full sticky top-0 left-0 h-max bg-slate-50 dark:bg-zinc-950 class="max-xl:hidden w-full sticky top-0 left-0 h-max bg-slate-50 dark:bg-zinc-950 {sidePadding}"
{sidePadding}"
style="grid-area: suffix;" style="grid-area: suffix;"
/> />
</div> </div>
+3 -1
View File
@@ -75,6 +75,7 @@ interface Settings {
} }
posts: { posts: {
deduplicateEmbed: boolean deduplicateEmbed: boolean
compactFeatured: boolean
} }
} }
@@ -130,7 +131,8 @@ export const defaultSettings: Settings = {
top: false top: false
}, },
posts: { posts: {
deduplicateEmbed: true deduplicateEmbed: true,
compactFeatured: true
} }
} }