dark theme enhancements

This commit is contained in:
Roman Cervantes 2020-10-21 12:02:32 -07:00
parent 524bfd9da4
commit 62ec1ad600
3 changed files with 23 additions and 8 deletions

View file

@ -1,6 +1,6 @@
<template lang="html"> <template lang="html">
<b-button <b-button
variant="primary" :variant="nightMode ? 'light' : 'primary'"
v-b-modal:create-board v-b-modal:create-board
> >
{{ $t('boards.create') }} {{ $t('boards.create') }}

View file

@ -1,14 +1,31 @@
<!-- TODO: translate -->
<template lang="html"> <template lang="html">
<b-jumbotron class="empty-board w-100 text-center"> <b-jumbotron
class="empty-board w-100 text-center"
:bg-variant="nightMode ? 'dark' : ''"
:text-variant="nightMode ? 'white' : ''"
:border-variant="nightMode ? 'light' : ''"
>
<p>This board is empty</p> <p>This board is empty</p>
<b-button variant="primary" @click="openAddListModal">
<b-button
:variant="nightMode ? 'light' : 'primary'"
@click="openAddListModal"
>
Add list Add list
</b-button> </b-button>
</b-jumbotron> </b-jumbotron>
</template> </template>
<script> <script>
import { mapGetters } from 'vuex';
export default { export default {
computed: {
...mapGetters(['nightMode']),
},
methods: { methods: {
openAddListModal() { openAddListModal() {
this.$bvModal.show('add-list'); this.$bvModal.show('add-list');

View file

@ -2,7 +2,6 @@
<div class="platform-picker"> <div class="platform-picker">
<b-dropdown <b-dropdown
:text="dropdownLabel" :text="dropdownLabel"
menu-class="platforms-dropdown"
boundary="viewport" boundary="viewport"
> >
<b-dropdown-item <b-dropdown-item
@ -68,9 +67,8 @@ export default {
}; };
</script> </script>
<style lang="scss" rel="stylesheet/scss"> <style lang="scss" rel="stylesheet/scss" scoped>
.platforms-dropdown { .dropdown {
overflow: auto; max-height: 50vh;
max-height: 300px;
} }
</style> </style>