From 8d29416fd35825e94eb054c9c14f0ba2cfd50902 Mon Sep 17 00:00:00 2001 From: Kevin Janssen Date: Tue, 17 Nov 2026 22:44:53 +0100 Subject: [PATCH] Present script names and versions as readable cards on small screens --- web/src/script-library.tsx | 18 +++++++++--------- web/src/script-workspace.css | 8 ++++++++ 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/web/src/script-library.tsx b/web/src/script-library.tsx index ad1c380..4a74da7 100644 --- a/web/src/script-library.tsx +++ b/web/src/script-library.tsx @@ -239,11 +239,11 @@ export function ScriptLibrary({ tenantId, auth }: { tenantId: string; auth: Sess )} ) : ( -
+
{!library.data ? ( -

Bibliothek wird geladen …

+

Bibliothek wird geladen …

) : library.data.length ? ( -
+
@@ -256,9 +256,9 @@ export function ScriptLibrary({ tenantId, auth }: { tenantId: string; auth: Sess {latestRevisions(library.data).map((item) => ( - - - - + + + ))}
+ {interpreterNames[item.interpreter]}{item.version}{identityNames[item.execution_identity]}{interpreterNames[item.interpreter]}{item.version}{identityNames[item.execution_identity]}
) : ( -

Für diesen Kunden sind noch keine Skripte veröffentlicht.

+

Für diesen Kunden sind noch keine Skripte veröffentlicht.

)}
)} diff --git a/web/src/script-workspace.css b/web/src/script-workspace.css index 284bc2a..e1f5953 100644 --- a/web/src/script-workspace.css +++ b/web/src/script-workspace.css @@ -88,3 +88,11 @@ .work-form .order-source input { width: auto; } +@media (min-width:761px) { + .script-table th:first-child { width:38%; } + .script-table th:nth-child(3) { width:13%; } +} +@media (max-width:760px) { + .script-table .hostname { padding-right:0; } + .script-table td[data-label="Ausführen als"] { grid-column:1/-1; } +}