Skip to content

Commit

Permalink
webapp: remove table's bottom margin
Browse files Browse the repository at this point in the history
we don't need a margin at the bottom of tables in general. not sure why
this is even a thing in bootstrap. this change, in particular, makes the
space between a table and a parent card symmetric on all sides.
  • Loading branch information
schlimmchen authored and tbnobody committed Nov 1, 2024
1 parent d06ea51 commit d3eabc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/components/InverterChannelInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</div>

<div class="table-responsive">
<table class="table table-striped table-hover" style="margin: 0">
<table class="table table-striped table-hover">
<tbody>
<tr v-for="(property, key) in channelData" :key="`prop-${key}`">
<template v-if="key != 'name' && property">
Expand Down
4 changes: 4 additions & 0 deletions webapp/src/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ table.table tr:last-child th,
table.table tr:last-child td {
border-bottom: 0;
}

table.table {
margin-bottom: 0;
}

0 comments on commit d3eabc3

Please sign in to comment.