Fix HTML Quirks mode issues

This commit is contained in:
Zaid Abdulla committed 2022-06-29 11:07:42 -07:00
1 parent b0d50b07e7
commit 6f29267266
2 files changed
+18 -5

No files matched your search

+16 -3
View File
@@ -87,7 +87,7 @@ i {
} }
body { body {
height: 100%; height: 100vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
@@ -169,6 +169,7 @@ body {
& input { & input {
width: 100%; width: 100%;
box-sizing: border-box;
padding: 0.3em; padding: 0.3em;
margin-top: 0.3em; margin-top: 0.3em;
margin-bottom: 0.3em; margin-bottom: 0.3em;
@@ -291,6 +292,7 @@ body {
& > img { & > img {
margin: 10px; margin: 10px;
height: 56px; height: 56px;
vertical-align: top;
} }
& > .version { & > .version {
@@ -581,6 +583,7 @@ span.na {
.all-parameters { .all-parameters {
& > input { & > input {
font-family: monospace; font-family: monospace;
font-size: 14px;
margin-bottom: 2px; margin-bottom: 2px;
padding: 4px; padding: 4px;
width: 700px; width: 700px;
@@ -588,6 +591,10 @@ span.na {
& > .parameter-list { & > .parameter-list {
font-family: monospace; font-family: monospace;
font-size: 14px;
& button {
font-size: 16px;
}
overflow-y: scroll; overflow-y: scroll;
height: 200px; height: 200px;
@@ -725,6 +732,7 @@ span.long-text-overflowed {
textarea.long-text { textarea.long-text {
font-family: monospace; font-family: monospace;
font-size: 14px;
min-width: 10vw; min-width: 10vw;
min-height: 10vh; min-height: 10vh;
} }
@@ -746,8 +754,7 @@ span.parameter-value {
} }
.icon { .icon {
display: inline-block; display: block;
vertical-align: middle;
width: 1em; width: 1em;
height: 1em; height: 1em;
fill: none; fill: none;
@@ -797,3 +804,9 @@ span.parameter-value {
background-color: #b12d5c; background-color: #b12d5c;
} }
} }
/* To keep consistent style after changing from Quirks to Standards mode */
td,
th {
line-height: normal;
}
+2 -2
View File
@@ -388,7 +388,7 @@ const component: ClosureComponent = (): Component => {
function repositionNotifications(): void { function repositionNotifications(): void {
let top = 10; let top = 10;
for (const c of notificationElements as VnodeDOM[]) { for (const c of notificationElements as VnodeDOM[]) {
(c.dom as HTMLDivElement).style.top = `${top}`; (c.dom as HTMLDivElement).style.top = `${top}px`;
top += (c.dom as HTMLDivElement).offsetHeight + 10; top += (c.dom as HTMLDivElement).offsetHeight + 10;
} }
} }
@@ -408,7 +408,7 @@ const component: ClosureComponent = (): Component => {
for (const c of drawerElement.children) for (const c of drawerElement.children)
height = Math.max(height, c.dom.offsetTop + c.dom.offsetHeight); height = Math.max(height, c.dom.offsetTop + c.dom.offsetHeight);
} }
drawerElement.dom.style.height = height; drawerElement.dom.style.height = height + "px";
} }
if (stagingElements.length + queueElements.length) { if (stagingElements.length + queueElements.length) {