fix(jobs): keep new-job button on one line, unclip name label, make command/image fields resizable
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
mat-flat-button
|
||||
color="primary"
|
||||
type="button"
|
||||
class="new-job-button"
|
||||
(click)="openCreateDialog()">
|
||||
<mat-icon>add</mat-icon>
|
||||
Neuer Job
|
||||
|
||||
@@ -12,6 +12,11 @@
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.new-job-button {
|
||||
flex-shrink: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
h1,
|
||||
p {
|
||||
margin: 0;
|
||||
|
||||
@@ -18,10 +18,12 @@
|
||||
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>Befehl</mat-label>
|
||||
<input
|
||||
<textarea
|
||||
matInput
|
||||
class="command-input"
|
||||
rows="2"
|
||||
formControlName="command"
|
||||
placeholder="python sync.py --stats" />
|
||||
placeholder="python sync.py --stats"></textarea>
|
||||
<mat-icon
|
||||
matSuffix
|
||||
class="field-info"
|
||||
@@ -32,7 +34,11 @@
|
||||
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>Image</mat-label>
|
||||
<input matInput formControlName="image" />
|
||||
<textarea
|
||||
matInput
|
||||
class="image-input"
|
||||
rows="1"
|
||||
formControlName="image"></textarea>
|
||||
<mat-icon
|
||||
matSuffix
|
||||
class="field-info"
|
||||
|
||||
@@ -3,6 +3,23 @@
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
min-width: 400px;
|
||||
|
||||
// Give the first field's floating label room so it is not clipped by the
|
||||
// dialog title above it.
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
// Long commands / image names should wrap and stay fully readable, and the
|
||||
// user can drag the field taller.
|
||||
.command-input,
|
||||
.image-input {
|
||||
resize: vertical;
|
||||
font-family:
|
||||
ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.commands-loading {
|
||||
|
||||
@@ -6,10 +6,12 @@
|
||||
<form class="edit-form" [formGroup]="form">
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>Befehl</mat-label>
|
||||
<input
|
||||
<textarea
|
||||
matInput
|
||||
class="command-input"
|
||||
rows="2"
|
||||
formControlName="command"
|
||||
placeholder="python sync.py --stats" />
|
||||
placeholder="python sync.py --stats"></textarea>
|
||||
<mat-icon
|
||||
matSuffix
|
||||
class="field-info"
|
||||
@@ -20,7 +22,11 @@
|
||||
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>Image</mat-label>
|
||||
<input matInput formControlName="image" />
|
||||
<textarea
|
||||
matInput
|
||||
class="image-input"
|
||||
rows="1"
|
||||
formControlName="image"></textarea>
|
||||
<mat-icon
|
||||
matSuffix
|
||||
class="field-info"
|
||||
|
||||
@@ -11,6 +11,19 @@
|
||||
min-width: 400px;
|
||||
}
|
||||
|
||||
// Long commands / image names should wrap and stay fully readable, and the
|
||||
// user can drag the field taller.
|
||||
.command-input,
|
||||
.image-input {
|
||||
resize: vertical;
|
||||
font-family:
|
||||
ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.field-info {
|
||||
color: #94a3b8;
|
||||
cursor: help;
|
||||
|
||||
Reference in New Issue
Block a user