Skip to content

Commit

Permalink
webapp: adjust look of tables in accordions to live view cards
Browse files Browse the repository at this point in the history
this is relevant for the radio statistics table, as well as the tables
in the grid profile modal.
  • Loading branch information
schlimmchen committed Oct 29, 2024
1 parent aef0efc commit a582f9c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
6 changes: 5 additions & 1 deletion webapp/src/components/GridProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
</table>

<div class="accordion" id="accordionProfile">
<div class="accordion-item" v-for="(section, index) in gridProfileList.sections" :key="index">
<div
class="accordion-item accordion-table"
v-for="(section, index) in gridProfileList.sections"
:key="index"
>
<h2 class="accordion-header">
<button
class="accordion-button collapsed"
Expand Down
10 changes: 10 additions & 0 deletions webapp/src/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ div.card.card-table tr > :last-child {
padding-right: var(--bs-card-cap-padding-x);
}

div.accordion-item.accordion-table tr > :first-child {
padding-left: var(--bs-accordion-btn-padding-x);
}

div.accordion-item.accordion-table div.accordion-body {
padding-top: 0;
padding-left: 0;
padding-right: 0;
}

div.card.card-table div.card-body {
padding: 0;
}
2 changes: 1 addition & 1 deletion webapp/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
</BootstrapAlert>

<div class="accordion mt-5" id="accordionRadioStats">
<div class="accordion-item">
<div class="accordion-item accordion-table">
<h2 class="accordion-header">
<button
class="accordion-button collapsed"
Expand Down

0 comments on commit a582f9c

Please sign in to comment.