feat: update general settings

This commit is contained in:
2024-09-27 09:12:38 +07:00
parent 0a8eed9a46
commit 5c3644f977
4 changed files with 29 additions and 26 deletions

View File

@@ -61,6 +61,11 @@ function Screen() {
description="Shows a warning for notes that have a content warning."
label="content_warning"
/>
<Setting
name="Trusted Only"
description="Only shows note's replies from your inner circle."
label="trusted_only"
/>
</div>
</div>
<div className="flex flex-col gap-2">
@@ -129,7 +134,7 @@ function Screen() {
</div>
</div>
<div className="sticky bottom-0 left-0 w-full h-16 flex items-center justify-end px-3">
<div className="absolute left-0 bottom-0 w-full h-11 gradient-mask-t-20 bg-white dark:bg-black" />
<div className="absolute left-0 bottom-0 w-full h-11 gradient-mask-t-0 bg-neutral-100 dark:bg-neutral-900" />
<button
type="button"
onClick={() => updateSettings()}

View File

@@ -45,15 +45,9 @@ const renderer = createRegexRenderer([
[
/(?:^|\W)nostr:(\w+)(?!\w)/g,
({ children, key, value }) => (
<a
key={key}
href={value}
target="_blank"
rel="noreferrer"
className="text-blue-500"
>
<span key={key} className="text-blue-500">
{children}
</a>
</span>
),
],
]);
@@ -320,7 +314,7 @@ function Menu({
top: top,
left: left,
}}
className="fixed w-[200px] text-sm bg-white dark:bg-black shadow-lg shadow-neutral-500/20 rounded-lg overflow-hidden"
className="fixed w-[200px] text-sm bg-white dark:bg-black shadow-lg shadow-neutral-500/20 dark:shadow-none dark:ring-1 dark:ring-neutral-700 rounded-lg overflow-hidden"
>
{users.map((u, i) => (
<div