web: remove almost every use of ml/mr

replace with flex and gap mostly. For #450.
This commit is contained in:
Harvey Tindall
2025-12-08 15:12:40 +00:00
parent 9c9e55147d
commit 362984a391
25 changed files with 339 additions and 268 deletions
+10 -1
View File
@@ -76,13 +76,22 @@ export class PageManager {
}
load(name: string = "") {
name = decodeURI(name);
if (!this.pages.has(name)) return window.history.pushState(name || this.defaultName, this.defaultTitle, "")
const p = this.pages.get(name);
this.loadPage(p);
}
loadPage (p: Page) {
window.history.pushState(p.name || this.defaultName, p.title, p.url + window.location.search);
let url = p.url;
// Fix ordering of query params and hash
if (url.includes("#")) {
let split = url.split("#");
url = split[0] + window.location.search + "#" + split[1];
} else {
url = url + window.location.search;
}
window.history.pushState(p.name || this.defaultName, p.title, url);
}
prev(name: string = "") {