From 9e4fe0d2274b00106e6a46a11242dcac1c10e8a1 Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Tue, 9 Jun 2020 21:54:13 -0700 Subject: Customizable number of columns --- README.md | 3 +++ src/App.vue | 4 ++-- src/assets/defaults.yml | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c3a6f07..8818e32 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,9 @@ logo: "assets/homer.png" header: true # Set to false to hide the header footer: '

Created with ❤️ with bulma, vuejs & font awesome // Fork me on

' # set false if you want to hide it. +columns: "3" # "auto" or number (must be a factor of 12: 1, 2, 3, 4, 6, 12) +connectivityCheck: true # whether you want to display a message when the apps are not accessible anymore (VPN disconnected for example) + # Optional theming theme: default # 'default' or one of the theme available in 'src/assets/themes'. diff --git a/src/App.vue b/src/App.vue index 62156d2..17c3214 100644 --- a/src/App.vue +++ b/src/App.vue @@ -68,7 +68,7 @@ v-for="item in group.items" :key="item.name" v-bind:item="item" - class="column is-one-third-widescreen" + :class="['column', `is-${12 / config.columns}`]" /> @@ -79,7 +79,7 @@ class="columns is-multiline layout-vertical" >
diff --git a/src/assets/defaults.yml b/src/assets/defaults.yml index b2960c9..99f5ed5 100644 --- a/src/assets/defaults.yml +++ b/src/assets/defaults.yml @@ -7,6 +7,7 @@ subtitle: "Homer" header: true footer: '

Created with ❤️ with bulma, vuejs & font awesome // Fork me on

' # set false if you want to hide it. +columns: 3 connectivityCheck: true theme: default -- cgit v1.2.3