Skip to content

Commit 8582349

Browse files
committed
fix(overall app): resolve button, inputs and mat-panel broken css issue
1 parent 769b63a commit 8582349

7 files changed

Lines changed: 74 additions & 17 deletions

File tree

src/app/component/add-evidence-modal/add-evidence-modal.component.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,9 @@ <h3>Evidence Details</h3>
2424
<mat-error *ngIf="titleError" class="field-error">Title is required.</mat-error>
2525

2626
<mat-form-field appearance="outline" class="full-width">
27-
<mat-label>Description</mat-label>
28-
<textarea
29-
matInput
30-
[(ngModel)]="description"
31-
rows="4"
32-
placeholder="Describe the evidence in detail..."></textarea>
27+
<textarea matInput [(ngModel)]="description" rows="4" placeholder="Description"></textarea>
3328
</mat-form-field>
29+
3430
<mat-form-field appearance="outline">
3531
<mat-label>Reviewer</mat-label>
3632
<input matInput [(ngModel)]="reviewer" placeholder="e.g. Jane Doe" />

src/app/component/report-config-modal/report-config-modal.component.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,18 @@
6868
color: var(--text-secondary);
6969
}
7070

71-
.checkbox-grid {
72-
display: grid;
73-
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
74-
gap: 8px;
71+
:host {
72+
.checkbox-grid {
73+
display: grid;
74+
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
75+
gap: 1px;
76+
}
77+
78+
.references-section {
79+
display: grid;
80+
grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
81+
gap: 1px;
82+
}
7583
}
7684

7785
.search-field {

src/app/component/team-selector/team-selector.component.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
white-space: nowrap;
3737
}
3838

39-
.checkbox-grid {
39+
:host ::ng-deep .checkbox-grid {
4040
display: grid;
41-
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
42-
gap: 8px;
41+
grid-template-columns: repeat(auto-fill, minmax(200px, 10px)) !important;
42+
gap: 2px !important;
4343
}

src/app/pages/circular-heatmap/circular-heatmap.component.css

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
}
1515

1616
.info-button {
17-
width: 24px;
18-
height: 24px;
19-
line-height: 24px;
17+
width: 20px !important;
18+
height: 20px !important;
2019
opacity: 0.6;
20+
padding: 0px !important;
2121
}
2222
.compact-tooltip {
2323
transform: translateY(-20px) !important;
@@ -204,6 +204,36 @@ button.filter-toggle {
204204
align-items: center;
205205
}
206206

207+
/* Card padding */
208+
:host ::ng-deep .activity-card .mat-mdc-card-content {
209+
padding: 0 16px 16px 0;
210+
}
211+
212+
:host ::ng-deep .activity-card {
213+
padding: 16px;
214+
margin-top: 20px;
215+
}
216+
217+
/* Expansion panel spacing */
218+
:host ::ng-deep .activity-card mat-expansion-panel {
219+
margin-bottom: 8px;
220+
border-radius: 8px !important;
221+
}
222+
223+
:host ::ng-deep .activity-card .mat-expansion-panel-header {
224+
height: 48px;
225+
padding: 0 16px;
226+
}
227+
228+
mat-card-title-group {
229+
margin-bottom: 15px;
230+
}
231+
232+
:host ::ng-deep .activity-card .mat-expansion-panel-body li {
233+
justify-content: center;
234+
align-items: center;
235+
}
236+
207237
@media only screen and (max-width: 750px) {
208238
.heatmapClass {
209239
grid-template-rows: auto auto 1fr auto;
@@ -235,4 +265,8 @@ button.filter-toggle {
235265
width: 100%;
236266
}
237267

268+
}
269+
270+
.filter-label {
271+
margin-top: 20px;
238272
}

src/app/pages/circular-heatmap/circular-heatmap.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h2>Nothing to show</h2>
4343
{{ group.key }}
4444
</mat-chip-option>
4545
</mat-chip-listbox>
46-
46+
<mat-divider></mat-divider>
4747
<label class="filter-label">Team Filter</label>
4848
<mat-chip-listbox selectable multiple>
4949
<mat-chip-option
@@ -54,6 +54,7 @@ <h2>Nothing to show</h2>
5454
{{ team.key }}
5555
</mat-chip-option>
5656
</mat-chip-listbox>
57+
<mat-divider></mat-divider>
5758
</div>
5859
</div>
5960
<mat-card appearance="outlined" class="activity-card" *ngIf="showActivityCard">

src/app/pages/settings/settings.component.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,6 @@ mat-icon.mandatory-icon {
248248
margin-left: 0.5rem;
249249
font-weight: 500;
250250
}
251+
.progress-definitions-section, .settings-about-section {
252+
padding: 10px 0 0 20px;
253+
}

src/custom-theme.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,4 +437,19 @@ svg .cursors #hover {
437437
svg .cursors #selected {
438438
stroke: var(--heatmap-cursor-selected, black);
439439
stroke-width: 4px;
440+
}
441+
442+
mat-expansion-panel-header {
443+
height: 48px !important;
444+
padding: 0 16px;
445+
}
446+
447+
.mat-mdc-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix {
448+
padding-top: 16px;
449+
padding-bottom: 8px;
450+
min-height: 56px;
451+
}
452+
453+
.mat-mdc-button, .mdc-button{
454+
letter-spacing: 0.1px;
440455
}

0 commit comments

Comments
 (0)