mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-22 00:03:20 +01:00
ux: always render the label so prompts are aligned and add a min-width to the label to support two digit numbers
This commit is contained in:
parent
73b3beb81b
commit
0a87a7bec3
@ -715,15 +715,26 @@ div.img-preview img {
|
||||
.header-content > .drag-handle {
|
||||
min-width: initial !important;
|
||||
}
|
||||
.taskStatusLabel, .taskNumberOfImagesLabel {
|
||||
.taskLabel {
|
||||
font-size: 8pt;
|
||||
background:var(--background-color2);
|
||||
border: 1px solid rgb(61, 62, 66);
|
||||
padding: 2pt 4pt;
|
||||
border-radius: 2pt;
|
||||
margin-right: 5pt;
|
||||
display: inline;
|
||||
}
|
||||
.taskStatusLabel {
|
||||
margin-right: 5pt;
|
||||
}
|
||||
.multiNumberOfImages {
|
||||
font-weight: bold;
|
||||
}
|
||||
.taskNumberOfImagesLabel {
|
||||
min-width: 30px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.activeTaskLabel {
|
||||
background:rgb(0, 90, 30);
|
||||
border: 1px solid rgb(0, 75, 19);
|
||||
|
@ -1102,8 +1102,8 @@ function createTask(task) {
|
||||
taskEntry.className = "imageTaskContainer"
|
||||
taskEntry.innerHTML = ` <div class="header-content panel collapsible active">
|
||||
<i class="drag-handle fa-solid fa-grip"></i>
|
||||
${task.numOutputsTotal > 1 ? `<div class="taskNumberOfImagesLabel">✕${task.numOutputsTotal}</div>` : ''}
|
||||
<div class="taskStatusLabel">Enqueued</div>
|
||||
<div class="taskLabel taskNumberOfImagesLabel ${task.numOutputsTotal > 1 ? 'multiNumberOfImages' : ''}">✕${task.numOutputsTotal}</div>
|
||||
<div class="taskLabel taskStatusLabel">Enqueued</div>
|
||||
<button class="secondaryButton stopTask"><i class="fa-solid fa-xmark"></i> Cancel</button>
|
||||
<button class="tertiaryButton useSettings"><i class="fa-solid fa-redo"></i> Use these settings</button>
|
||||
<div class="preview-prompt"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user