fix(frontend): fix 'sticky' info message on edit fields page

This commit is contained in:
sam 2023-08-20 22:50:23 +02:00
parent d97b3f8da1
commit 0595e8d5f5
No known key found for this signature in database
GPG key ID: B4EF20DDE721CAA1
2 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
<script lang="ts">
import { getContext } from "svelte";
import type { Writable } from "svelte/store";
import { Alert, Button, Icon } from "sveltestrap";
import { Button, Icon } from "sveltestrap";
import type { Member } from "$lib/api/entities";
import EditableField from "$lib/components/edit/EditableField.svelte";
@ -27,10 +27,10 @@
</script>
{#if $member.fields.length === 0}
<Alert class="mt-3" color="secondary" fade={false}>
<div class="my-2">
Fields are extra categories you can add separate from names and pronouns.<br />
For example, you could use them for gender terms, honorifics, or compliments.
</Alert>
</div>
{/if}
<div class="grid gap-3">
<div class="row row-cols-1 row-cols-md-2">

View file

@ -1,7 +1,7 @@
<script lang="ts">
import { getContext } from "svelte";
import type { Writable } from "svelte/store";
import { Alert, Button, Icon } from "sveltestrap";
import { Button, Icon } from "sveltestrap";
import type { MeUser } from "$lib/api/entities";
import EditableField from "$lib/components/edit/EditableField.svelte";
@ -27,10 +27,10 @@
</script>
{#if $user.fields.length === 0}
<Alert class="mt-3" color="secondary" fade={false}>
<div class="my-2">
Fields are extra categories you can add separate from names and pronouns.<br />
For example, you could use them for gender terms, honorifics, or compliments.
</Alert>
</div>
{/if}
<div class="grid gap-3">
<div class="row row-cols-1 row-cols-md-2">