Skip to content

Commit

Permalink
Fix types & simplify prop value for Grid.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Popov committed Aug 1, 2024
1 parent e294cb1 commit b2a54a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/shared/Widget/Grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<grid-layout
ref="grid"
class="widgets-grid"
responsive
:layout="layout"
:responsive-layouts="layouts"
:cols="cols"
Expand All @@ -10,7 +11,6 @@
:is-draggable="draggable"
:is-resizable="resizable"
:margin="[margin, margin]"
:responsive="true"
:prevent-collision="false"
:vertical-compact="compact"
:use-css-transforms="false"
Expand Down Expand Up @@ -147,7 +147,7 @@ export default class WidgetsGrid extends Vue {
return this.layouts[this.breakpoint];
}
get gridLinesStyle(): Partial<CSSStyleDeclaration> {
get gridLinesStyle() {
const r = this.rowHeight;
const m = this.margin / 2;
const c = this.cols[this.breakpoint];
Expand Down

0 comments on commit b2a54a8

Please sign in to comment.