feat: compact featured posts
This commit is contained in:
1 parent
4cf151a7c3
commit
991b6b761a
4 files changed
+39
-36
No files matched your search
@@ -111,7 +111,10 @@
|
||||
>
|
||||
<Post
|
||||
hideCommunity={community}
|
||||
view={$userSettings.view}
|
||||
view={(post.post.featured_community || post.post.featured_local) &&
|
||||
$userSettings.posts.compactFeatured
|
||||
? 'compact'
|
||||
: $userSettings.view}
|
||||
{post}
|
||||
class="transition-all duration-250 {post.withCrossposts &&
|
||||
viewPost != post.post.id
|
||||
|
||||
+4
-4
@@ -127,12 +127,12 @@ export const defaultSettings: Settings = {
|
||||
youtube: 'youtube',
|
||||
},
|
||||
dock: {
|
||||
noGap: false,
|
||||
top: false
|
||||
noGap: toBool(env.PUBLIC_DOCK_PANEL) ?? false,
|
||||
top: toBool(env.PUBLIC_DOCK_TOP) ?? false
|
||||
},
|
||||
posts: {
|
||||
deduplicateEmbed: true,
|
||||
compactFeatured: true
|
||||
deduplicateEmbed: toBool(env.PUBLIC_DEDUPLICATE_EMBED) ?? true,
|
||||
compactFeatured: toBool(env.PUBLIC_COMPACT_FEATURED) ?? true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user