Skip to content

Commit

Permalink
Customizable number of columns
Browse files Browse the repository at this point in the history
  • Loading branch information
bastienwirtz committed Jun 10, 2020
1 parent e9113b4 commit 9e4fe0d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ logo: "assets/homer.png"
header: true # Set to false to hide the header
footer: '<p>Created with <span class="has-text-danger">❤️</span> with <a href="https://bulma.io/">bulma</a>, <a href="https://vuejs.org/">vuejs</a> & <a href="https://fontawesome.com/">font awesome</a> // Fork me on <a href="https://github.com/bastienwirtz/homer"><i class="fab fa-github-alt"></i></a></p>' # 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'.

Expand Down
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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}`]"
/>
</template>
</div>
Expand All @@ -79,7 +79,7 @@
class="columns is-multiline layout-vertical"
>
<div
class="column is-one-third-widescreen"
:class="['column', `is-${12 / config.columns}`]"
v-for="group in services"
:key="group.name"
>
Expand Down
1 change: 1 addition & 0 deletions src/assets/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ subtitle: "Homer"
header: true
footer: '<p>Created with <span class="has-text-danger">❤️</span> with <a href="https://bulma.io/">bulma</a>, <a href="https://vuejs.org/">vuejs</a> & <a href="https://fontawesome.com/">font awesome</a> // Fork me on <a href="https://github.com/bastienwirtz/homer"><i class="fab fa-github-alt"></i></a></p>' # set false if you want to hide it.

columns: 3
connectivityCheck: true

theme: default
Expand Down

0 comments on commit 9e4fe0d

Please sign in to comment.