- Swimlane style refinements.
- New theme constants for swimlane colors.
- Time Strip label column buttons aligned right.
This commit is contained in:
Charles Hacskaylo 2024-12-19 09:56:28 -08:00
parent 5312458776
commit bb4fea78f5
6 changed files with 33 additions and 17 deletions

View File

@ -523,6 +523,8 @@ $colorInProgressFgEm: $colorTimeRealtimeFg;
$colorGanttSelectedBorder: rgba(#fff, 0.3); $colorGanttSelectedBorder: rgba(#fff, 0.3);
$colorEventLine: $colorBodyFg; $colorEventLine: $colorBodyFg;
$colorEventLineExtended: rgba($colorEventLine, 0.3); $colorEventLineExtended: rgba($colorEventLine, 0.3);
$colorTimeStripDraftBg: rgba(#a57748, 0.2);
$colorTimeStripLabelBg: rgba($colorBodyFg, 0.15);
$eventLineW: 1px; $eventLineW: 1px;
// Tree // Tree

View File

@ -488,6 +488,8 @@ $colorInProgressFgEm: $colorTimeRealtimeFg;
$colorGanttSelectedBorder: rgba(#fff, 0.3); $colorGanttSelectedBorder: rgba(#fff, 0.3);
$colorEventLine: $colorBodyFg; $colorEventLine: $colorBodyFg;
$colorEventLineExtended: rgba($colorEventLine, 0.3); $colorEventLineExtended: rgba($colorEventLine, 0.3);
$colorTimeStripDraftBg: rgba(#a57748, 0.2);
$colorTimeStripLabelBg: rgba($colorBodyFg, 0.15);
$eventLineW: 1px; $eventLineW: 1px;
// Tree // Tree

View File

@ -504,6 +504,8 @@ $colorInProgressFgEm: $colorTimeRealtimeFg;
$colorGanttSelectedBorder: rgba(#fff, 0.3); $colorGanttSelectedBorder: rgba(#fff, 0.3);
$colorEventLine: $colorBodyFg; $colorEventLine: $colorBodyFg;
$colorEventLineExtended: rgba($colorEventLine, 0.3); $colorEventLineExtended: rgba($colorEventLine, 0.3);
$colorTimeStripDraftBg: rgba(#a57748, 0.2);
$colorTimeStripLabelBg: rgba($colorBodyFg, 0.15);
$eventLineW: 1px; $eventLineW: 1px;
// Tree // Tree

View File

@ -487,6 +487,8 @@ $colorInProgressFgEm: $colorCurrentFgEm;
$colorGanttSelectedBorder: #fff; $colorGanttSelectedBorder: #fff;
$colorEventLine: $colorBodyFg; $colorEventLine: $colorBodyFg;
$colorEventLineExtended: rgba($colorEventLine, 0.3); $colorEventLineExtended: rgba($colorEventLine, 0.3);
$colorTimeStripDraftBg: rgba(#a57748, 0.2);
$colorTimeStripLabelBg: rgba($colorBodyFg, 0.15);
$eventLineW: 1px; $eventLineW: 1px;
// Tree // Tree

View File

@ -45,6 +45,7 @@
<div class="c-object-label__name"> <div class="c-object-label__name">
<slot name="label"></slot> <slot name="label"></slot>
</div> </div>
<div class="c-swimlane__lane-label-button-h">
<button <button
v-if="!hideButton" v-if="!hideButton"
class="c-button" class="c-button"
@ -54,6 +55,7 @@
@click="pressOnButton" @click="pressOnButton"
/> />
</div> </div>
</div>
<div <div
class="c-swimlane__lane-object" class="c-swimlane__lane-object"
:style="{ 'min-height': minHeight }" :style="{ 'min-height': minHeight }"

View File

@ -28,17 +28,13 @@
width: 100%; width: 100%;
&.is-status--draft { &.is-status--draft {
background: rgba($colorAlert, 0.2); background: $colorTimeStripDraftBg;
} }
[class*='__lane-label'] { &__lane-label {
background: rgba($colorBodyFg, 0.2); background: $colorTimeStripLabelBg;
color: $colorBodyFg; color: $colorBodyFg;
padding: $interiorMarginSm; padding: $interiorMarginSm $interiorMargin;
}
[class*='--span-cols'] {
grid-column: span 2;
} }
&__lane-object { &__lane-object {
@ -52,6 +48,16 @@
@include smallerControlButtons; @include smallerControlButtons;
} }
&__lane-label-button-h {
// Holds swimlane button(s)
flex: 1 1 auto;
text-align: right;
}
.--span-cols {
grid-column: span 2;
}
// Yet more brittle special case selecting... // Yet more brittle special case selecting...
.is-object-type-plan, .is-object-type-plan,
.is-object-type-gantt-chart { .is-object-type-gantt-chart {