Skip to content

Commit

Permalink
Fix global table styling and tweak historical data padding
Browse files Browse the repository at this point in the history
  • Loading branch information
vkoves committed May 1, 2024
1 parent bc61077 commit ee750e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/BuildingsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class BuildingsTable extends Vue {
</script>

<template>
<div class="table-cont">
<div class="buildings-table-cont">
<table :class="{ '-wide': showSquareFootage || showGasUse || showElectricityUse }">
<thead>
<tr>
Expand Down Expand Up @@ -196,7 +196,7 @@ export default class BuildingsTable extends Vue {
<style lang="scss">
// Make the whole table scroll in a constrained container so we can have a sticky header - CSS makes
// that impossible otherwise
.table-cont {
.buildings-table-cont {
width: 100%;
max-height: 80vh;
overflow: auto;
Expand Down
10 changes: 5 additions & 5 deletions src/templates/BuildingDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ query ($id: ID!, $ID: String) {
<h2>Historical Data</h2>
<div class="table-cont">
<table>
<div class="historical-table-cont">
<table class="historical-data">
<thead>
<tr>
<th scope="col">
Expand Down Expand Up @@ -734,14 +734,14 @@ export default class BuildingDetails extends Vue {
.stat-tile { min-width: 18rem; }
}
.table-cont {
.historical-table-cont {
max-width: 100%;
overflow-x: auto;
margin-top: 0.5rem;
margin-bottom: 1rem;
}
table {
table.historical-data {
border: solid 0.125rem $grey;
border-radius: $brd-rad-small;
border-collapse: collapse;
Expand All @@ -755,7 +755,7 @@ export default class BuildingDetails extends Vue {
}
th, td {
padding: 0.25rem 0.75rem;
padding: 0.5rem 0.75rem;
text-align: left;
}
Expand Down

0 comments on commit ee750e3

Please sign in to comment.