Fix field margin issues

This commit is contained in:
Matthias Metelka 2022-09-06 22:53:45 +02:00
parent a26f7ee86b
commit 4d59d04187
2 changed files with 34 additions and 26 deletions

View file

@ -85,6 +85,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
onDestroy(() => api?.destroy());
</script>
<div class="field-container">
<slot name="field-label" />
<Collapsible collapse={collapsed} let:collapsed={hidden}>
@ -113,6 +114,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
</EditingArea>
</div>
</Collapsible>
</div>
<style lang="scss">
.editor-field {

View file

@ -12,5 +12,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
display: flex;
flex-direction: column;
flex-grow: 1;
/* replace with "gap: 5px" once it's available
- required: Chromium 84 (Qt6 only) and iOS 14.1 */
> :global(*) {
margin: 5px 0;
}
}
</style>