From: Bastien Wirtz Date: Wed, 10 Jun 2020 04:54:13 +0000 (-0700) Subject: Customizable number of columns X-Git-Tag: 130585124 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=9e4fe0d2274b00106e6a46a11242dcac1c10e8a1;p=github%2Fbastienwirtz%2Fhomer.git Customizable number of columns --- 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