fix(frontend): consistency in the editor
This commit is contained in:
		
							parent
							
								
									7d0df67c06
								
							
						
					
					
						commit
						790b39f730
					
				
					 5 changed files with 4 additions and 12 deletions
				
			
		|  | @ -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)} | ||||
| 	> | ||||
|  |  | |||
|  | @ -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> | ||||
|  |  | |||
|  | @ -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> | ||||
| 
 | ||||
|  |  | |||
|  | @ -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} /> | ||||
|  |  | |||
|  | @ -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} /> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue