mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00

* Add back overflow:hidden to field descriptions * Add explaining comment * Put back overflow:hidden in FieldsEditor * Move inline padding from Fields component but EditorField+LabelContainer * Simplify editor design by making editor toolbar not sticky * Make tag editor in note editor non-sticky as well * Fix merge mess * The floating elements were portaled because I passed in undefined and they have a default argument - Fix unrelated to PR
28 lines
676 B
Svelte
28 lines
676 B
Svelte
<!--
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
-->
|
|
<!--
|
|
@component
|
|
Contains the fields. This contains the scrollable area.
|
|
-->
|
|
<div class="fields">
|
|
<slot />
|
|
</div>
|
|
|
|
<style lang="scss">
|
|
.fields {
|
|
display: grid;
|
|
grid-auto-rows: min-content;
|
|
grid-gap: 6px;
|
|
|
|
/* Add space after the last field and the start of the tag editor */
|
|
padding-bottom: 5px;
|
|
|
|
/* Move the scrollbar for the NoteEditor into this element */
|
|
overflow-y: auto;
|
|
|
|
/* Push the tag editor to the bottom of the note editor */
|
|
flex-grow: 1;
|
|
}
|
|
</style>
|