Added script management

This commit is contained in:
Magnus Åhall 2025-07-24 23:22:44 +02:00
parent ba7375fe15
commit 04b1325031
7 changed files with 575 additions and 4 deletions

View file

@ -107,6 +107,7 @@ button {
white-space: nowrap;
margin-top: 32px;
margin-bottom: 8px;
color: var(--section-color);
}
#types .group:first-child {
margin-top: 0px;
@ -361,3 +362,55 @@ dialog#connection-data div.button {
color: #fff;
z-index: 8192;
}
#scripts .group {
font-weight: bold;
margin-top: 32px;
color: var(--section-color);
}
#scripts .group:first-child {
margin-top: 0px;
}
#scripts .script {
display: grid;
grid-template-columns: min-content 1fr;
grid-gap: 4px;
align-items: center;
user-select: none;
cursor: pointer;
}
#scripts .script.selected {
font-weight: bold;
}
#scripts .script img {
display: block;
height: 24px;
}
#scripts .script div {
white-space: nowrap;
}
#editor-script > div {
display: grid;
grid-template-columns: 200px 1fr min-content;
grid-gap: 16px;
align-items: end;
}
#editor-script .label {
margin-top: 16px;
font-weight: bold;
color: var(--section-color);
}
#editor-script .label:first-child {
margin-top: 0px;
}
#editor-script input[type="text"] {
width: 100%;
}
#editor-script textarea {
width: 100%;
height: 400px;
font-family: monospace;
font-size: 0.85em;
}
#editor-script button {
margin-top: 8px;
}