mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-02-13 00:16:19 +02:00
added new field indicator
This commit is contained in:
parent
9736a45e80
commit
0710214701
@ -116,8 +116,11 @@
|
||||
name="schema.{key}.name"
|
||||
inlineError
|
||||
>
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<div class="form-field-addon prefix no-pointer-events" class:txt-disabled={!interactive}>
|
||||
<div
|
||||
class="form-field-addon prefix no-pointer-events field-type-icon"
|
||||
class:txt-disabled={!interactive}
|
||||
class:new={!field.id}
|
||||
>
|
||||
<i class={CommonHelper.getFieldTypeIcon(field.type)} />
|
||||
</div>
|
||||
|
||||
|
@ -20,6 +20,17 @@
|
||||
.form-field {
|
||||
margin: 0;
|
||||
}
|
||||
.field-type-icon.new:after {
|
||||
$size: 4px;
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: -6px;
|
||||
top: 9px;
|
||||
width: $size;
|
||||
height: $size;
|
||||
border-radius: $size;
|
||||
background: var(--baseAlt4Color);
|
||||
}
|
||||
.options-trigger {
|
||||
i {
|
||||
transition: transform var(--baseAnimationSpeed);
|
||||
|
Loading…
x
Reference in New Issue
Block a user