fix(frontend): consistency in the editor

This commit is contained in:
sam 2025-03-05 15:13:44 +01:00
parent 7d0df67c06
commit 790b39f730
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
5 changed files with 4 additions and 12 deletions

View file

@ -130,7 +130,7 @@
accept="image/png, image/jpeg, image/gif, image/webp"
/>
<button
class="btn btn-secondary"
class="btn btn-primary"
disabled={!avatarExists || avatarTooLarge}
onclick={() => onclick(avatar)}
>

View file

@ -4,5 +4,5 @@
<div class="alert alert-secondary">
{$t("editor.custom-preference-notice")}
<a href="/settings/pref" class="alert-link">{$t("editor.custom-preference-notice-link")}</a>
<a href="/settings/prefs" class="alert-link">{$t("editor.custom-preference-notice-link")}</a>
</div>

View file

@ -6,6 +6,7 @@
import FieldEditor from "./FieldEditor.svelte";
import FormStatusMarker from "./FormStatusMarker.svelte";
import NoscriptWarning from "./NoscriptWarning.svelte";
import CustomPreferencesNotice from "$components/editor/CustomPreferencesNotice.svelte";
type Props = {
fields: Field[];
@ -45,6 +46,7 @@
<NoscriptWarning />
<FormStatusMarker form={ok} />
<CustomPreferencesNotice />
<h4>{$t("edit-profile.editing-fields-header")}</h4>

View file

@ -2,9 +2,7 @@
import { apiRequest } from "$api";
import ApiError, { type RawApiError } from "$api/error";
import { mergePreferences, type User } from "$api/models/user";
import CustomPreferencesNotice from "$components/editor/CustomPreferencesNotice.svelte";
import FieldsEditor from "$components/editor/FieldsEditor.svelte";
import NoscriptWarning from "$components/editor/NoscriptWarning.svelte";
import log from "$lib/log";
import ephemeralState from "$lib/state.svelte";
import type { PageData } from "./$types";
@ -38,7 +36,4 @@
);
</script>
<NoscriptWarning />
<CustomPreferencesNotice />
<FieldsEditor bind:fields {ok} {allPreferences} {update} />

View file

@ -2,9 +2,7 @@
import { apiRequest } from "$api";
import ApiError, { type RawApiError } from "$api/error";
import { mergePreferences, type User } from "$api/models/user";
import CustomPreferencesNotice from "$components/editor/CustomPreferencesNotice.svelte";
import FieldsEditor from "$components/editor/FieldsEditor.svelte";
import NoscriptWarning from "$components/editor/NoscriptWarning.svelte";
import log from "$lib/log";
import ephemeralState from "$lib/state.svelte";
import type { PageData } from "./$types";
@ -38,7 +36,4 @@
);
</script>
<NoscriptWarning />
<CustomPreferencesNotice />
<FieldsEditor bind:fields {ok} {allPreferences} {update} />