Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Jun 1, 2024
1 parent 45267c7 commit 7182655
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions peachjam/js/components/LegislationTable/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
v-else
:id="`row-${index}`"
:row="row"
:hideCitation="hideCitations"
:hide-citation="hideCitations"
@toggle="toggleChildren(index)"
/>
<template v-if="row.children && row.children.length">
Expand All @@ -120,7 +120,7 @@
v-for="(child, childIndex) in row.children"
:key="childIndex"
:row="child"
:hideCitation="hideCitations"
:hide-citation="hideCitations"
/>
</tbody>
</template>
Expand Down
8 changes: 5 additions & 3 deletions peachjam/static/stylesheets/components/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ table.doc-table {
}

.doc-table-children {
background-color: $gray-100;

.cell-title {
padding-left: 20px;
}
Expand All @@ -64,8 +66,8 @@ table.doc-table {
tr {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 0 $table-cell-padding-x;
padding: $table-cell-padding-x;
gap: 0 $table-cell-padding-x-sm;
padding: $table-cell-padding-x 0;
// the row is moved to the tr, rather than the cells
border-bottom: 1px solid $table-border-color;
}
Expand Down Expand Up @@ -126,7 +128,7 @@ table.doc-table.doc-table--toggle {

@include media-breakpoint-down(md) {
tr {
// extra 25px for the toggle column
// extra space for the toggle column
grid-template-columns: 20px repeat(12, 1fr);
}

Expand Down

0 comments on commit 7182655

Please sign in to comment.