Skip to content

Commit 3e811fb

Browse files
committed
styling fixes
1 parent 1a87a60 commit 3e811fb

File tree

2 files changed

+22
-30
lines changed

2 files changed

+22
-30
lines changed

src/Frontend/src/components/audit/AuditList.vue

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,14 @@ function setQuery() {
175175
top: -3rem;
176176
background: #f2f6f7;
177177
z-index: 100;
178+
/* set padding/margin so that the sticky version is offset, but not the non-sticky version */
179+
padding-top: 0.5rem;
180+
margin-top: -0.5rem;
178181
}
179182
180183
.results-table {
181184
margin-top: 1rem;
182185
margin-bottom: 5rem;
183-
padding: 10px 0;
184186
background-color: #ffffff;
185187
}
186188
.spacer {
@@ -192,9 +194,9 @@ function setQuery() {
192194
padding: 3px;
193195
border: 1px solid #ffffff;
194196
display: grid;
195-
grid-template-columns: 25px 1fr 1fr 1fr 1fr;
197+
grid-template-columns: 1.8em 1fr 1fr 1fr 1fr;
196198
grid-template-rows: 1fr 1fr;
197-
gap: 6px;
199+
gap: 0.375rem;
198200
grid-template-areas:
199201
"status message-type message-type message-type time-sent"
200202
"status message-id processing-time critical-time delivery-time";
@@ -205,7 +207,7 @@ function setQuery() {
205207
cursor: pointer;
206208
}
207209
.label-name {
208-
margin-right: 4px;
210+
margin-right: 0.25rem;
209211
color: #777f7f;
210212
}
211213
.status {
@@ -220,6 +222,7 @@ function setQuery() {
220222
.message-type {
221223
grid-area: message-type;
222224
font-weight: bold;
225+
overflow-wrap: break-word;
223226
}
224227
.processing-time {
225228
grid-area: processing-time;
@@ -232,24 +235,24 @@ function setQuery() {
232235
}
233236
.status-container {
234237
color: white;
235-
width: 20px;
236-
height: 20px;
238+
width: 1.4em;
239+
height: 1.4em;
237240
position: relative;
238241
}
239242
240243
.status-icon {
241244
background-position: center;
242245
background-repeat: no-repeat;
243-
height: 20px;
244-
width: 20px;
246+
height: 1.4em;
247+
width: 1.4em;
245248
}
246249
247250
.warning {
248251
background-image: url("@/assets/warning.svg");
249252
background-position: bottom;
250253
background-repeat: no-repeat;
251-
height: 13px;
252-
width: 13px;
254+
height: 0.93em;
255+
width: 0.93em;
253256
position: absolute;
254257
right: 0;
255258
bottom: 0;
@@ -278,19 +281,4 @@ function setQuery() {
278281
.retry-issued {
279282
background-image: url("@/assets/status_retry_issued.svg");
280283
}
281-
282-
.grid-row {
283-
display: flex;
284-
position: relative;
285-
border-top: 1px solid #eee;
286-
border-right: 1px solid #fff;
287-
border-bottom: 1px solid #eee;
288-
border-left: 1px solid #fff;
289-
background-color: #fff;
290-
margin: 0;
291-
}
292-
293-
.grid-row:nth-child(even) {
294-
background-color: #eee;
295-
}
296284
</style>

src/Frontend/src/components/audit/FiltersPanel.vue

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ watch(selectedSortByItem, (newValue) => {
7979
<ListFilterSelector :items="numberOfItemsPerPage" instructions="Select how many result to display" v-model="selectedItemsPerPage" item-name="result" :can-clear="false" :show-clear="false" :show-filter="false" />
8080
</div>
8181
</div>
82-
<div class="filter last-filter">
82+
<div class="filter">
8383
<div class="filter-label">Sort:</div>
8484
<div class="filter-component">
8585
<ListFilterSelector :items="sortByItems" v-model="selectedSortByItem" item-name="result" :can-clear="false" :show-clear="false" :show-filter="false" />
@@ -89,22 +89,26 @@ watch(selectedSortByItem, (newValue) => {
8989
</template>
9090

9191
<style scoped>
92-
.last-filter {
93-
flex-grow: 1;
94-
place-content: flex-end;
95-
}
9692
.filters {
9793
background-color: #f3f3f3;
9894
border: #8c8c8c 1px solid;
9995
border-radius: 3px;
10096
padding: 0.3125rem;
10197
display: flex;
10298
gap: 1.1rem;
99+
flex-wrap: wrap;
103100
}
101+
104102
.filter {
105103
display: flex;
106104
align-items: center;
107105
}
106+
107+
.filter:last-child {
108+
flex-grow: 1;
109+
place-content: flex-end;
110+
}
111+
108112
.filter-label {
109113
font-weight: bold;
110114
}

0 commit comments

Comments
 (0)