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 {
display: none;
}
.center {
text-align: center;
}
.error {
color: darkred;
}
.content {
width: 100%;
display: flex;
@ -111,6 +117,7 @@ hr {
background-color: #8888FF80;
}
/* For home */
.login-box {
@ -170,6 +177,17 @@ hr {
border-radius: 8px;
}
.token {
overflow-wrap: anywhere;
font-family: monospace;
}
.actions {
display: flex;
justify-content: center;
gap: 0.5em;
}
.resource {
padding: 0.5em;
display: flex;
@ -187,6 +205,26 @@ hr {
display: flex;
}
.resource {
text-align: center;
}
.token-info {
margin: 0 1em;
}
.key {
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')
vElem.innerText = v
vElem.className = "value"
if (k == "sorry") {
vElem.classList.add("error")
}
r.appendChild(kElem)
r.appendChild(vElem)
rootElem.appendChild(r)