Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Commit b743656

Browse files
minor styling of Leaderboard and VoteLeaderboardSearch
1 parent f9f5ca6 commit b743656

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

src/components/Leaderboard.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</template>
99

1010
<v-card>
11-
<v-card-title class="headline grey lighten-2">
11+
<v-card-title class="headline lighten-2">
1212
Our Vote Leaders
1313
</v-card-title>
1414

@@ -40,8 +40,8 @@ export default {
4040
dialog: false,
4141
headers: [
4242
{ text: "Rank", sortable: true, value: "rank" },
43-
{ text: "First Name", sortable: false, value: "firstName" },
44-
{ text: "Last Name", sortable: false, value: "lastName" },
43+
{ text: "First Name", sortable: true, value: "firstName" },
44+
{ text: "Last Name", sortable: true, value: "lastName" },
4545
{ text: "Votes", sortable: true, value: "numVotes" }
4646
],
4747
entries: [],
@@ -99,4 +99,8 @@ export default {
9999
};
100100
</script>
101101

102-
<style></style>
102+
<style lang="scss" scoped>
103+
.headline {
104+
background-color: #fdc743;
105+
}
106+
</style>

src/components/VoteLeaderboardSearch.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<v-row v-else-if="pageData.items === 0">
5151
No results were found for "{{ searchText }}"
5252
</v-row>
53-
<v-row justify="center" v-else>
53+
<v-row justify="center" v-else class="card-wrapper">
5454
<BallotCard
5555
v-for="(item, i) in pageData.items"
5656
:key="i"
@@ -246,4 +246,9 @@ h2 {
246246
font-weight: bold;
247247
margin-bottom: 12px;
248248
}
249+
250+
.card-wrapper {
251+
max-width: 1250px;
252+
margin: 0 auto;
253+
}
249254
</style>

0 commit comments

Comments
 (0)