Compare commits

...

2 commits

Author SHA1 Message Date
sam
790b39f730
fix(frontend): consistency in the editor 2025-03-05 15:13:44 +01:00
sam
7d0df67c06
fix(frontend): fix moving pronouns 2025-03-05 15:13:26 +01:00
6 changed files with 5 additions and 13 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

@ -48,7 +48,7 @@
icon="chevron-down"
color="secondary"
tooltip={$t("editor.move-entry-down")}
onclick={() => moveValue(index, true)}
onclick={() => moveValue(index, false)}
/>
<input type="text" class="form-control" bind:value={value.value} autocomplete="off" />
<ButtonDropdown>

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} />