Migrate featurebox-title (…) to Tailwind

This commit is contained in:
Tobias 2021-01-20 23:00:11 +01:00
parent d9040db12a
commit e3b7c7ddc6
6 changed files with 7 additions and 45 deletions

View file

@ -25,9 +25,6 @@ export default class FullScreenMessageBox extends UIElement {
protected InnerUpdate(htmlElement: HTMLElement) {
super.InnerUpdate(htmlElement);
// This is a bit out of place, and it is a fix specifically for the featureinfobox-titlebar
const height = htmlElement.getElementsByClassName("featureinfobox-titlebar")[0]?.clientHeight ?? 0;
htmlElement.style.setProperty("--variable-title-height", height + "px")
}