Behavior - Changed subtitle's width to their content width

This commit is contained in:
Noah Boos 2025-04-25 11:52:14 +02:00
parent ec3cf231d4
commit 3e0fbfc364
2 changed files with 7 additions and 1 deletions

View file

@ -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.

View file

@ -6,6 +6,10 @@
text-align: center;
}
.ankiIntegrationModal__h2--fit-content {
width: fit-content;
}
.ankiIntegrationModal__inputContainer--flex,
.ankiIntegrationModal__dropdownContainer--flex {
display: flex;