Skip to content

Commit 9ff8074

Browse files
committed
Fix spacing in create/edit modal
1 parent 29c71ff commit 9ff8074

File tree

3 files changed

+9
-22
lines changed

3 files changed

+9
-22
lines changed

AGENTS.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ Prioritize clean code:
4242
- Testable - code is written so its easy to test
4343

4444
Code should follow a hexagonal architecture. Avoid packages/module names like common, util and
45-
const. Focus on colocating code based on the feature or capability it relates to.
45+
const. Focus on colocating code in the same module based on the feature or capability it relates to.
4646

47-
Before making changes to the code, make a proposal with an overview and details of what you plan
48-
to change.
47+
Before making changes, make a proposal of what you plan to change.
4948

5049
### Testing & Linting
5150

@@ -58,7 +57,7 @@ Test commands:
5857
- `make test-frontend`: run frontend tests only
5958
- `make test-backend`: run backend tests only
6059

61-
Run the relevant tests for the code that has changed. Fix all test issues.
60+
After making changes run the relevant tests for the code that has changed. Fix all test issues.
6261

6362
Lint commands:
6463

@@ -67,7 +66,7 @@ Lint commands:
6766
- `make lint-frontend-less`: lint the LeSS only
6867
- `make lint-backend`: lint the backend only
6968

70-
Run the relevant linters for the code that has changed. Fix all lint issues.
69+
After making changes run the relevant linters for the code that has changed. Fix all lint issues.
7170

7271
### Python
7372

custom_components/maint/frontend/panel.css

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -326,12 +326,12 @@ label {
326326
}
327327
.weekday-row {
328328
display: flex;
329-
gap: 0.4rem;
330329
flex-wrap: wrap;
331330
align-items: center;
332331
width: 100%;
333332
min-width: 0;
334333
flex: 0 0 auto;
334+
gap: 5px;
335335
}
336336
.date-input-wrapper {
337337
display: grid;
@@ -469,7 +469,7 @@ label {
469469
display: block;
470470
}
471471
.help-text {
472-
margin: 0;
472+
margin-top: 5px;
473473
font-size: 0.9rem;
474474
color: var(--secondary-text-color);
475475
}
@@ -501,7 +501,6 @@ label {
501501
border-radius: 10px;
502502
border: 1px solid var(--divider-color);
503503
background: var(--card-background-color);
504-
margin: 2px 6px 6px 0;
505504
}
506505
.weekday-chip input {
507506
width: auto;
@@ -546,10 +545,6 @@ h2 {
546545
margin: 0 0 8px;
547546
font-size: 18px;
548547
}
549-
.modal p {
550-
margin: 0 0 16px;
551-
color: var(--secondary-text-color);
552-
}
553548
.modal .modal-actions {
554549
display: flex;
555550
justify-content: flex-end;
@@ -626,7 +621,6 @@ h2 {
626621
}
627622
.weekly-inline {
628623
flex-direction: column;
629-
gap: 0.5rem;
630624
}
631625
.weekly-every {
632626
flex: 1 1 auto;

frontend/less/panel.less

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ maint-task-row+maint-task-row {
326326

327327
&:hover,
328328
&:focus-visible {
329+
329330
&::after,
330331
&::before {
331332
opacity: 1;
@@ -422,12 +423,12 @@ label {
422423

423424
.weekday-row {
424425
display: flex;
425-
gap: 0.4rem;
426426
flex-wrap: wrap;
427427
align-items: center;
428428
width: 100%;
429429
min-width: 0;
430430
flex: 0 0 auto;
431+
gap: 5px;
431432
}
432433

433434
.date-input-wrapper {
@@ -591,7 +592,7 @@ label {
591592
}
592593

593594
.help-text {
594-
margin: 0;
595+
margin-top: 5px;
595596
font-size: 0.9rem;
596597
color: @secondary-text;
597598
}
@@ -628,7 +629,6 @@ label {
628629
border-radius: @radius-large;
629630
border: 1px solid @divider-color;
630631
background: @card-bg;
631-
margin: 2px 6px 6px 0;
632632

633633
input {
634634
width: auto;
@@ -678,11 +678,6 @@ h2 {
678678
font-size: 18px;
679679
}
680680

681-
p {
682-
margin: 0 0 16px;
683-
color: @secondary-text;
684-
}
685-
686681
.modal-actions {
687682
display: flex;
688683
justify-content: flex-end;
@@ -764,7 +759,6 @@ h2 {
764759

765760
.weekly-inline {
766761
flex-direction: column;
767-
gap: 0.5rem;
768762
}
769763

770764
.weekly-every {

0 commit comments

Comments
 (0)