mirror of
https://github.com/rifts-obsidian-laboratory/anki-integration.git
synced 2026-07-22 05:42:50 +00:00
Features (AddNoteModal as test) - Added "field-sizing: content;" to tag-related input
This commit is contained in:
parent
f314e40202
commit
d49f5899bf
2 changed files with 3 additions and 5 deletions
|
|
@ -121,7 +121,7 @@ export class AddNoteModal extends Modal {
|
|||
"ankiIntegrationModal__container--flex-row"
|
||||
]);
|
||||
const tagsInput: HTMLInputElement = AddInput(inputGroup, "text", "My tag::A super tag", null, [
|
||||
"ankiIntegrationModal__input--width-fit-content"
|
||||
"ankiIntegrationModal__input--field-sizing-content"
|
||||
]);
|
||||
tagsInput.removeClasses([
|
||||
"ankiIntegrationModal__input--default-width"
|
||||
|
|
|
|||
|
|
@ -21,10 +21,8 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.ankiIntegrationModal__input--width-fit-content {
|
||||
width: auto;
|
||||
display: flex;
|
||||
flex: 0 1 auto;
|
||||
.ankiIntegrationModal__input--field-sizing-content {
|
||||
field-sizing: content;
|
||||
}
|
||||
|
||||
.ankiIntegrationModal__dropdown--default-width {
|
||||
|
|
|
|||
Loading…
Reference in a new issue