Skip to content

Commit

Permalink
Make it compatible with latest version of Nova Dashboard (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
milewski authored Oct 24, 2023
1 parent 29a9ded commit 4bcee87
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/css/card.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/card.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions resources/js/components/Widget.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<template>

<Card class="value-widget flex justify-center py-4"
<Card class="value-widget flex justify-center py-4 overflow-hidden"
:style="{
'--background-color-dark': card.backgroundColorDark,
'--text-color-dark': card.textColorDark,
'--background-color-light': card.backgroundColorLight,
'--text-color-light': card.textColorLight,
}">

<LoadingView :loading="isLoading" class="flex flex-col justify-center items-center">
<LoadingView :loading="isLoading" class="flex flex-col justify-center items-center text-center">

<template v-if="card.icon.trim().startsWith('<svg')">
<div v-html="card.icon"/>
Expand Down
2 changes: 0 additions & 2 deletions src/ValueWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ abstract class ValueWidget extends Widget
{
public $component = 'value-widget';

public $width = self::ONE_QUARTER_WIDTH;

public function title(string $title): self
{
return $this->withMeta([ 'title' => $title ]);
Expand Down

0 comments on commit 4bcee87

Please sign in to comment.