Present script names and versions as readable cards on small screens
This commit is contained in:
@@ -239,11 +239,11 @@ export function ScriptLibrary({ tenantId, auth }: { tenantId: string; auth: Sess
|
||||
)}
|
||||
</section>
|
||||
) : (
|
||||
<section aria-label="Skriptbibliothek">
|
||||
<section aria-label="Skriptbibliothek" className="fleet">
|
||||
{!library.data ? (
|
||||
<p role="status">Bibliothek wird geladen …</p>
|
||||
<p className="list-message" role="status">Bibliothek wird geladen …</p>
|
||||
) : library.data.length ? (
|
||||
<div className="table">
|
||||
<div className="table fleet-table script-table">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -256,9 +256,9 @@ export function ScriptLibrary({ tenantId, auth }: { tenantId: string; auth: Sess
|
||||
<tbody>
|
||||
{latestRevisions(library.data).map((item) => (
|
||||
<tr key={item.name}>
|
||||
<td>
|
||||
<td className="hostname">
|
||||
<button
|
||||
className="link"
|
||||
className="host-link"
|
||||
onClick={() => {
|
||||
open(item.name);
|
||||
setNotice('');
|
||||
@@ -267,16 +267,16 @@ export function ScriptLibrary({ tenantId, auth }: { tenantId: string; auth: Sess
|
||||
{item.name}
|
||||
</button>
|
||||
</td>
|
||||
<td>{interpreterNames[item.interpreter]}</td>
|
||||
<td>{item.version}</td>
|
||||
<td>{identityNames[item.execution_identity]}</td>
|
||||
<td data-label="Plattform">{interpreterNames[item.interpreter]}</td>
|
||||
<td data-label="Version">{item.version}</td>
|
||||
<td data-label="Ausführen als">{identityNames[item.execution_identity]}</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
) : (
|
||||
<p>Für diesen Kunden sind noch keine Skripte veröffentlicht.</p>
|
||||
<p className="list-message">Für diesen Kunden sind noch keine Skripte veröffentlicht.</p>
|
||||
)}
|
||||
</section>
|
||||
)}
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user