diff --git a/package.json b/package.json index 846dc29a..04a998b2 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "@dicebear/core": "^6.0.4", "@dicebear/initials": "^6.0.4", "markdown-it": "^13.0.1", - "mono-svelte": "^1.3.3" + "mono-svelte": "^1.4.2" }, "type": "module" } diff --git a/src/lib/components/lemmy/ViewSelect.svelte b/src/lib/components/lemmy/ViewSelect.svelte index 619e2513..deae12b0 100644 --- a/src/lib/components/lemmy/ViewSelect.svelte +++ b/src/lib/components/lemmy/ViewSelect.svelte @@ -2,13 +2,19 @@ import { userSettings } from '$lib/settings.js' import { Select } from 'mono-svelte' import { Icon, ViewColumns } from 'svelte-hero-icons' + + export let showLabel = true @@ -137,27 +120,7 @@ Show a user's display name instead of their account username. - - {$userSettings.displayNames ? 'Enabled' : 'Disabled'} - - - - Posts - - Mark read posts - Mark a post as read when you click on it. - - {$userSettings.markPostsAsRead ? 'Enabled' : 'Disabled'} - - - - Fade read posts - - Fade the title of posts you've already read. - - - {$userSettings.markReadPosts ? 'Enabled' : 'Disabled'} - + Vote style @@ -167,24 +130,55 @@ bind:selected={$userSettings.separateVotes} /> + + Expand Images + + Clicking on a post's image brings you to an expanded view rather than + sending you to the post page. + + + + + Thumbnail Alignment + + Where thumbnails should be on the post in list/compact view. + + + + {#if LINKED_INSTANCE_URL} + + Remove "Powered by Photon" + + Remove the massive 120x16 div in the top left corner. + + + + {/if} + + +
+ + Mark read posts + Mark a post as read when you click on it. + + + + Fade read posts + + Fade the title of posts you've already read. + + + NSFW blur Blur images and remove post bodies of NSFW content. - - {$userSettings.nsfwBlur ? 'Enabled' : 'Disabled'} - - - - Expand Images - - Clicking on an image brings you to an expanded view rather than sending - you to the post page. - - - {$userSettings.expandImages ? 'Enabled' : 'Disabled'} - + Hide Posts @@ -209,45 +203,17 @@ - Thumbnail Alignment - - Where thumbnails should be on the post in list/compact view. - + Font + What font Photon should use. - {#if LINKED_INSTANCE_URL} - - - Remove original project's credit because you don't like the creator as - a person - - - Disable the "Powered by Photon" in the top left corner, thus - decreasing visibility of the original project and limiting discovery. - The creator of Photon intentionally made it unobtrusive, but if you - want to remove it because a 120x16 div bothers you so much, you have - that option. - - - {$userSettings.hidePhoton ? 'Enabled' : 'Disabled'} - - - {/if} - - Instances Show instances Show items' instances. - - Xylight - @example.com -
Users @@ -260,8 +226,9 @@
+
- Moderation +
Removal reply presets @@ -287,7 +254,7 @@ {#each $userSettings.moderation.presets as preset, index} - +
+
- Other - - Font - What font Photon should use. - - +
Debug Info Show an option to show debug information. (in posts and such) - - {$userSettings.debugInfo ? 'Enabled' : 'Disabled'} - + - +
diff --git a/src/routes/settings/Section.svelte b/src/routes/settings/Section.svelte new file mode 100644 index 00000000..2f3c9286 --- /dev/null +++ b/src/routes/settings/Section.svelte @@ -0,0 +1,13 @@ + + +
+ {title} + +
diff --git a/src/routes/settings/Setting.svelte b/src/routes/settings/Setting.svelte index 28f441b9..d04f5197 100644 --- a/src/routes/settings/Setting.svelte +++ b/src/routes/settings/Setting.svelte @@ -1,22 +1,17 @@ - - - -
-

+
+
+

{#if $$slots.description} -

+

{/if}
{#if $$slots.default}
{/if} - +
diff --git a/yarn.lock b/yarn.lock index ac4291e6..319c7e6b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3043,10 +3043,10 @@ mlly@^1.2.0, mlly@^1.4.0: pkg-types "^1.0.3" ufo "^1.1.2" -mono-svelte@^1.3.3: - version "1.3.3" - resolved "https://registry.yarnpkg.com/mono-svelte/-/mono-svelte-1.3.3.tgz#07d62be73442978813c0383395802ee58c3db1e6" - integrity sha512-ZEG404o7bS/lKfVicO1Vqbl4tnj26Q8Vr9s4DfwTWwjhO6jq7CJMHXJYfjk0865vr6f2SLs3dSmApYlQlamXZw== +mono-svelte@^1.4.2: + version "1.4.2" + resolved "https://registry.yarnpkg.com/mono-svelte/-/mono-svelte-1.4.2.tgz#c66520ac9f56e964656228fad34149d5e85d3813" + integrity sha512-iAqtHfJBAoBNiE/WSRPEyU/MWTMgLLTbNYhVKq+U2+ktJ9/wC9rhTgbq7CuCzfWBWKFJgtqsZNS/w0TBtIhgXA== dependencies: "@floating-ui/core" "^1.5.0" svelte-floating-ui "^1.5.3"