Skip to content

Commit

Permalink
fix(dashboard): correct types for content-style
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Aug 28, 2023
1 parent 6185467 commit d27860a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions frontend/dashboard/src/components/dashboard/card.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts" setup>
import { IconGripVertical, IconEyeOff } from '@tabler/icons-vue';
import { NCard, NButton } from 'naive-ui';
import { useAttrs } from 'vue';
import { type CSSProperties, useAttrs } from 'vue';
import { useWidgets, type WidgetItem } from './widgets.js';
Expand All @@ -12,9 +12,9 @@ defineSlots<{
}>();
withDefaults(defineProps<{
contentStyle?: string
contentStyle?: CSSProperties
}>(), {
contentStyle: 'padding: 0px;',
contentStyle: () => ({ padding: '5px'}),
});
const widgets = useWidgets();
Expand Down
2 changes: 1 addition & 1 deletion frontend/dashboard/src/components/dashboard/chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const chatUrl = computed(() => {
</script>

<template>
<card content-style="margin-bottom: 10px; padding: 0px">
<card :content-style="{ 'margin-bottom': '10px', padding: '0px' }">
<template #header-extra>
<n-button size="small" text @click="toggleTheme">
<IconSun v-if="chatTheme === 'dark'" color="orange" />
Expand Down

0 comments on commit d27860a

Please sign in to comment.