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>
|
||||||
) : (
|
) : (
|
||||||
<section aria-label="Skriptbibliothek">
|
<section aria-label="Skriptbibliothek" className="fleet">
|
||||||
{!library.data ? (
|
{!library.data ? (
|
||||||
<p role="status">Bibliothek wird geladen …</p>
|
<p className="list-message" role="status">Bibliothek wird geladen …</p>
|
||||||
) : library.data.length ? (
|
) : library.data.length ? (
|
||||||
<div className="table">
|
<div className="table fleet-table script-table">
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -256,9 +256,9 @@ export function ScriptLibrary({ tenantId, auth }: { tenantId: string; auth: Sess
|
|||||||
<tbody>
|
<tbody>
|
||||||
{latestRevisions(library.data).map((item) => (
|
{latestRevisions(library.data).map((item) => (
|
||||||
<tr key={item.name}>
|
<tr key={item.name}>
|
||||||
<td>
|
<td className="hostname">
|
||||||
<button
|
<button
|
||||||
className="link"
|
className="host-link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
open(item.name);
|
open(item.name);
|
||||||
setNotice('');
|
setNotice('');
|
||||||
@@ -267,16 +267,16 @@ export function ScriptLibrary({ tenantId, auth }: { tenantId: string; auth: Sess
|
|||||||
{item.name}
|
{item.name}
|
||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
<td>{interpreterNames[item.interpreter]}</td>
|
<td data-label="Plattform">{interpreterNames[item.interpreter]}</td>
|
||||||
<td>{item.version}</td>
|
<td data-label="Version">{item.version}</td>
|
||||||
<td>{identityNames[item.execution_identity]}</td>
|
<td data-label="Ausführen als">{identityNames[item.execution_identity]}</td>
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
))}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</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>
|
</section>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -88,3 +88,11 @@
|
|||||||
.work-form .order-source input {
|
.work-form .order-source input {
|
||||||
width: auto;
|
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