Skip to content

Commit

Permalink
Implement column span
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe01 committed Jan 2, 2021
1 parent 13dcf41 commit 5e5d49f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/ui/front/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<title>Hat configuration panel</title>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion cmd/ui/front/src/components/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
transition(name="fade")
div(v-if="widgets")
.tile.is-ancestor(v-for="row in widgets")
.tile.is-parent(v-for="(widget, path) in row")
.tile.is-parent(v-for="(widget, path) in row" :class="[widget.colspan > 1 && 'is-' + widget.colspan]")
Widget(:widget="widget" :path="path")
template(v-else)
progress.progress.is-small.is-dark.mt-5(v-if="!failed")
Expand Down
2 changes: 1 addition & 1 deletion cmd/ui/front/src/components/Widget.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template lang="pug">
.tile.is-child.card.is-flex.is-flex-direction-column
.tile.card.is-flex.is-flex-direction-column
header.card-header
p.card-header-title(:class="{'has-text-danger': failed}")
span {{widget.title}}
Expand Down

0 comments on commit 5e5d49f

Please sign in to comment.