forked from MapComplete/MapComplete
Migrate featurebox-title (…) to Tailwind
This commit is contained in:
parent
d9040db12a
commit
e3b7c7ddc6
6 changed files with 7 additions and 45 deletions
|
@ -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")
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue