Cosmetic
All checks were successful
/ build (push) Successful in 6s
/ test (push) Successful in 5s

This commit is contained in:
phil 2025-02-04 18:19:58 +01:00
parent 31a783cbf1
commit 3dc14ae57b
2 changed files with 41 additions and 0 deletions

View file

@ -21,6 +21,12 @@ hr {
.hidden { .hidden {
display: none; display: none;
} }
.center {
text-align: center;
}
.error {
color: darkred;
}
.content { .content {
width: 100%; width: 100%;
display: flex; display: flex;
@ -111,6 +117,7 @@ hr {
background-color: #8888FF80; background-color: #8888FF80;
} }
/* For home */ /* For home */
.login-box { .login-box {
@ -170,6 +177,17 @@ hr {
border-radius: 8px; border-radius: 8px;
} }
.token {
overflow-wrap: anywhere;
font-family: monospace;
}
.actions {
display: flex;
justify-content: center;
gap: 0.5em;
}
.resource { .resource {
padding: 0.5em; padding: 0.5em;
display: flex; display: flex;
@ -187,6 +205,26 @@ hr {
display: flex; display: flex;
} }
.resource {
text-align: center;
}
.token-info {
margin: 0 1em;
}
.key { .key {
font-weight: bold; font-weight: bold;
} }
.token .key, .token .value {
display: inline;
}
.token .value {
padding-left: 1em;
}
.msg {
text-align: center;
font-weight: bold;
}

View file

@ -48,6 +48,9 @@ async function get_resource(id, token, authProvider) {
let vElem = document.createElement('div') let vElem = document.createElement('div')
vElem.innerText = v vElem.innerText = v
vElem.className = "value" vElem.className = "value"
if (k == "sorry") {
vElem.classList.add("error")
}
r.appendChild(kElem) r.appendChild(kElem)
r.appendChild(vElem) r.appendChild(vElem)
rootElem.appendChild(r) rootElem.appendChild(r)