forked from MapComplete/MapComplete
Tweak loading screen layout
This commit is contained in:
parent
aaad4ac72c
commit
ee7b584907
4 changed files with 20 additions and 11 deletions
|
@ -534,7 +534,7 @@ class GenerateLayouts extends Script {
|
|||
)
|
||||
.replace(
|
||||
/<!-- IMAGE-START -->.*<!-- IMAGE-END -->/s,
|
||||
"<img class='p-0 mb-8 h-32 w-32 self-start' src='" + icon + "' />"
|
||||
"<img class='p-0 h-32 w-32 self-start' src='" + icon + "' />"
|
||||
)
|
||||
.replace(
|
||||
/.*\/src\/index\.ts.*/,
|
||||
|
|
|
@ -44,6 +44,9 @@ async function main() {
|
|||
const state = new ThemeViewState(layout, availableLayers)
|
||||
const main = new SvelteUIElement(ThemeViewGUI, { state })
|
||||
main.AttachTo("maindiv")
|
||||
Array.from(document.getElementsByClassName("delete-on-load")).forEach(el => {
|
||||
el.parentElement.removeChild(el)
|
||||
})
|
||||
} catch (err) {
|
||||
console.error("Error while initializing: ", err, err.stack)
|
||||
const customDefinition = DetermineLayout.getCustomDefinition()
|
||||
|
|
|
@ -39,6 +39,9 @@ async function main() {
|
|||
const state = new ThemeViewState(new LayoutConfig(<any> layout), availableLayers)
|
||||
const main = new SvelteUIElement(ThemeViewGUI, { state })
|
||||
main.AttachTo("maindiv")
|
||||
Array.from(document.getElementsByClassName("delete-on-load")).forEach(el => {
|
||||
el.parentElement.removeChild(el)
|
||||
})
|
||||
}
|
||||
}
|
||||
main()
|
||||
|
|
11
theme.html
11
theme.html
|
@ -68,7 +68,12 @@
|
|||
</p>
|
||||
</div>
|
||||
|
||||
<div class="flex justify-between items-end w-full">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex justify-between items-end w-full absolute bottom-0 p-4 h-fit delete-on-load">
|
||||
|
||||
<!-- IMAGE-START -->
|
||||
<img aria-hidden="true" class="p-4 h-32 w-32 self-start" src="./assets/svg/add.svg">
|
||||
|
@ -77,10 +82,8 @@
|
|||
Version
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div aria-hidden="true" id="belowmap" class="absolute top-0 left-0 -z-10">Below</div>
|
||||
<script src="./src/UI/RemoveOtherLanguages.ts" type="module"></script>
|
||||
<script async src="./src/InstallServiceWorker.ts" type="module"></script>
|
||||
|
|
Loading…
Reference in a new issue