Skip to content

Commit 9d8059f

Browse files
committed
fix css
1 parent 9fbd281 commit 9d8059f

File tree

10 files changed

+13
-69
lines changed

10 files changed

+13
-69
lines changed

web-app/admin/src/app/admin/admin-event/admin-event-form/fields-list/fields-list.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../shared-event-styles';
1+
@import '../../event-styles';
22

33
.fields-list-detailed,
44
::ng-deep .cdk-drag-preview {

web-app/admin/src/app/admin/admin-event/admin-event-form/form-details/field-dialog/field-dialog.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h2 mat-dialog-title>{{ isEditMode ? 'Edit Field' : 'Add New Field' }}</h2>
77
<strong>Field Type</strong>
88
</div>
99
<div class="config-inline-control">
10-
<select class="form-input" [(ngModel)]="field.type" name="fieldType">
10+
<select class="form-input" [(ngModel)]="field.type" name="fieldType" [disabled]="isEditMode">
1111
<option *ngFor="let type of data.fieldTypes" [value]="type.name">
1212
{{ type.title }}
1313
</option>
@@ -220,7 +220,6 @@ <h2 mat-dialog-title>{{ isEditMode ? 'Edit Field' : 'Add New Field' }}</h2>
220220
<input type="checkbox" [(ngModel)]="field.required" name="fieldRequired">
221221
<span>Required Field</span>
222222
</label>
223-
<p class="field-hint">Users must enter a value for this field.</p>
224223
</div>
225224
</div>
226225
</mat-dialog-content>

web-app/admin/src/app/admin/admin-event/admin-event-form/form-details/field-dialog/field-dialog.component.scss

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../../shared-event-styles';
1+
@import '../../../event-styles';
22

33
::ng-deep .add-field-dialog {
44
.mat-mdc-dialog-container {
@@ -12,10 +12,9 @@
1212

1313
.config-inline-item {
1414
display: grid;
15-
grid-template-columns: 150px 1fr;
15+
grid-template-columns: 175px 1fr;
1616
gap: 16px;
1717
align-items: start;
18-
margin-bottom: 20px;
1918

2019
.config-inline-label {
2120
display: flex;
@@ -64,36 +63,6 @@
6463
}
6564
}
6665

67-
.checkbox-section {
68-
margin-bottom: 20px;
69-
70-
.checkbox-label {
71-
display: flex;
72-
align-items: center;
73-
gap: 8px;
74-
cursor: pointer;
75-
user-select: none;
76-
77-
input[type="checkbox"] {
78-
width: 18px;
79-
height: 18px;
80-
cursor: pointer;
81-
}
82-
83-
span {
84-
font-size: 14px;
85-
font-weight: 500;
86-
color: #333;
87-
}
88-
}
89-
90-
.field-hint {
91-
font-size: 12px;
92-
color: #666;
93-
margin: 4px 0 0 26px;
94-
line-height: 1.4;
95-
}
96-
}
9766

9867
.options-list {
9968
margin-bottom: 1rem;
@@ -177,6 +146,9 @@
177146

178147
.checkbox-label {
179148
margin-bottom: 0;
149+
display: flex;
150+
align-items: center;
151+
gap: 8px;
180152
}
181153
}
182154
}

web-app/admin/src/app/admin/admin-event/admin-event-form/form-details/form-details.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../shared-event-styles';
1+
@import '../../event-styles';
22

33
.details-section {
44
display: grid;

web-app/admin/src/app/admin/admin-event/create-event/create-event.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../shared-event-styles';
1+
@import '../event-styles';
22

33
.error-alert {
44
display: flex;

web-app/admin/src/app/admin/admin-event/create-form/create-form.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../shared-event-styles';
1+
@import '../event-styles';
22

33
.dialog-modal {
44
display: flex;

web-app/admin/src/app/admin/admin-event/dashboard/event-dashboard.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../shared-event-styles';
1+
@import '../event-styles';
22

33
::ng-deep .admin-main-content {
44
min-width: 520px;

web-app/admin/src/app/admin/admin-event/delete-event/delete-event.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../shared-event-styles';
1+
@import '../event-styles';
22

33
.dialog-modal {
44
padding: 20px;

web-app/admin/src/app/admin/admin-event/event-details/event-details.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../shared-event-styles';
1+
@import '../event-styles';
22

33
.container {
44
padding: 16px;

web-app/admin/src/app/admin/admin-event/_shared-event-styles.scss renamed to web-app/admin/src/app/admin/admin-event/event-styles.scss

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Shared styles for admin event components
2-
// Import this file in component stylesheets that need these common patterns
3-
41
.container {
52
padding: 16px;
63
}
@@ -101,10 +98,6 @@
10198
}
10299
}
103100

104-
// ============================================================================
105-
// CARDS & CONTAINERS
106-
// ============================================================================
107-
108101
.details-card,
109102
.card {
110103
background: white;
@@ -458,10 +451,6 @@ mat-card-content {
458451
}
459452
}
460453

461-
// ============================================================================
462-
// BUTTONS
463-
// ============================================================================
464-
465454
.action-button {
466455
display: inline-flex;
467456
align-items: center;
@@ -572,10 +561,6 @@ mat-card-content {
572561
border-top: 1px solid #e5e7eb;
573562
}
574563

575-
// ============================================================================
576-
// ALERTS & MESSAGES
577-
// ============================================================================
578-
579564
.error-alert {
580565
display: flex;
581566
align-items: center;
@@ -687,10 +672,6 @@ mat-card-content {
687672
}
688673
}
689674

690-
// ============================================================================
691-
// TABLES & LISTS
692-
// ============================================================================
693-
694675
.table-wrapper {
695676
display: flex;
696677
flex-direction: column;
@@ -785,10 +766,6 @@ mat-card-content {
785766
min-width: fit-content;
786767
}
787768

788-
// ============================================================================
789-
// DRAG & DROP
790-
// ============================================================================
791-
792769
.cdk-drag-preview {
793770
box-sizing: border-box;
794771
border-radius: 8px;
@@ -807,10 +784,6 @@ mat-card-content {
807784
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
808785
}
809786

810-
// ============================================================================
811-
// DIVIDERS
812-
// ============================================================================
813-
814787
hr {
815788
margin: 2rem 0;
816789
border: 0;

0 commit comments

Comments
 (0)