fix: show titles if in compact mode
This commit is contained in:
1 parent
08c7126477
commit
4cf151a7c3
3 files changed
+9
-6
No files matched your search
@@ -31,11 +31,13 @@
|
||||
$: type = mediaType(post.post.url, view)
|
||||
$: hideTitle =
|
||||
$userSettings.posts.deduplicateEmbed &&
|
||||
post.post.embed_title == post.post.name
|
||||
post.post.embed_title == post.post.name &&
|
||||
view != 'compact'
|
||||
|
||||
$: hideBody =
|
||||
$userSettings.posts.deduplicateEmbed &&
|
||||
post.post.embed_description == post.post.body
|
||||
post.post.embed_description == post.post.body &&
|
||||
view != 'compact'
|
||||
</script>
|
||||
|
||||
<Material
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
if (top) return '!pt-22'
|
||||
else return '!pb-22'
|
||||
} else {
|
||||
if (!content) return ''
|
||||
if (!content) return '!pt-4'
|
||||
|
||||
if (top) return '!pt-24'
|
||||
else return '!pb-24'
|
||||
@@ -80,8 +80,7 @@
|
||||
/>
|
||||
<slot
|
||||
name="suffix"
|
||||
class="max-xl:hidden w-full sticky top-0 left-0 h-max bg-slate-50 dark:bg-zinc-950
|
||||
{sidePadding}"
|
||||
class="max-xl:hidden w-full sticky top-0 left-0 h-max bg-slate-50 dark:bg-zinc-950 {sidePadding}"
|
||||
style="grid-area: suffix;"
|
||||
/>
|
||||
</div>
|
||||
|
||||
+3
-1
@@ -75,6 +75,7 @@ interface Settings {
|
||||
}
|
||||
posts: {
|
||||
deduplicateEmbed: boolean
|
||||
compactFeatured: boolean
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,7 +131,8 @@ export const defaultSettings: Settings = {
|
||||
top: false
|
||||
},
|
||||
posts: {
|
||||
deduplicateEmbed: true
|
||||
deduplicateEmbed: true,
|
||||
compactFeatured: true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user