drag_handle
@@ -26,7 +34,10 @@
(change)="toggleRule(rule.id)"
color="primary"
>
-
{{ i + 1 }}. {{ rule.name }}
+
{{ i + 1 }}.
+ {{ rule.name }}
@@ -64,9 +75,9 @@
} @else if (rule.type === RuleType.TIME_WINDOW) {
Placer {{ rule.placeDays }} jour(s)
- {{ getDayTypeLabel(rule.placeType) }} entre
- le {{ rule.startDate | date: 'dd/MM/yyyy' }} et
- le {{ rule.endDate | date: 'dd/MM/yyyy' }} {{ getDayTypeLabel(rule.placeType) }} entre le
+ {{ rule.startDate | date: 'dd/MM/yyyy' }} et le
+ {{ rule.endDate | date: 'dd/MM/yyyy' }} .
}
diff --git a/src/app/components/rules-panel/rules-panel.scss b/src/app/components/rules-panel/rules-panel.scss
index e9427d0..72d40f9 100644
--- a/src/app/components/rules-panel/rules-panel.scss
+++ b/src/app/components/rules-panel/rules-panel.scss
@@ -31,10 +31,10 @@
border-radius: 8px;
transition: all 0.2s ease;
background: var(--mat-sys-surface-container);
-
+
&:not(.editing) {
cursor: grab;
-
+
&:active {
cursor: grabbing;
}
@@ -52,9 +52,10 @@
.cdk-drag-preview {
box-sizing: border-box;
border-radius: 8px;
- box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
- 0 8px 10px 1px rgba(0, 0, 0, 0.14),
- 0 3px 14px 2px rgba(0, 0, 0, 0.12);
+ box-shadow:
+ 0 5px 5px -3px rgba(0, 0, 0, 0.2),
+ 0 8px 10px 1px rgba(0, 0, 0, 0.14),
+ 0 3px 14px 2px rgba(0, 0, 0, 0.12);
}
.cdk-drag-placeholder {
@@ -146,7 +147,7 @@
font-size: 0.95rem;
line-height: 1.5;
padding-left: 48px; /* Align with toggle switch text */
-
+
strong {
font-weight: 600;
}
@@ -205,7 +206,7 @@
flex-direction: column;
gap: 8px;
margin-top: 8px;
-
+
&.hidden {
display: none;
}