mirror of
https://github.com/rifts-obsidian-laboratory/anki-integration.git
synced 2026-07-22 05:42:50 +00:00
Behavior - Changed subtitle's width to their content width
This commit is contained in:
parent
ec3cf231d4
commit
3e0fbfc364
2 changed files with 7 additions and 1 deletions
|
|
@ -89,7 +89,9 @@ export function AddSubtitle(parent: HTMLElement, subtitle: string, classes: stri
|
|||
* @remarks
|
||||
* Pushes into classes all CSS classes that are mandatory for a container.
|
||||
*/
|
||||
classes.push();
|
||||
classes.push(
|
||||
"ankiIntegrationModal__h2--fit-content"
|
||||
);
|
||||
/**
|
||||
* @type {HTMLElement} createdEl
|
||||
* The created subtitle.
|
||||
|
|
|
|||
|
|
@ -6,6 +6,10 @@
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
.ankiIntegrationModal__h2--fit-content {
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.ankiIntegrationModal__inputContainer--flex,
|
||||
.ankiIntegrationModal__dropdownContainer--flex {
|
||||
display: flex;
|
||||
|
|
|
|||
Loading…
Reference in a new issue