Skip to content

Commit

Permalink
fix(dashboard): add extra margin for chat widget, so typing is available
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Aug 28, 2023
1 parent ad8599f commit 6185467
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
9 changes: 7 additions & 2 deletions frontend/dashboard/src/components/dashboard/card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ defineSlots<{
'header-extra'?: any
}>();
withDefaults(defineProps<{
contentStyle?: string
}>(), {
contentStyle: 'padding: 0px;',
});
const widgets = useWidgets();
const attrs = useAttrs() as { item: WidgetItem, [x: string]: unknown };
Expand All @@ -29,7 +35,7 @@ const hideItem = () => {
footer: 'soft'
}"
header-style="padding: 5px;"
content-style="padding: 0px;"
:content-style="contentStyle"
style="width: 100%; height: 100%"
v-bind="$attrs"
>
Expand All @@ -56,4 +62,3 @@ const hideItem = () => {
</template>
</n-card>
</template>
./widgets.js
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>
<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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"dev": "go run ./tools/dev.go",
"build": "turbo run build --filter=!./apps/dota",
"build:libs": "turbo run build --filter=./libs/**",
"cache-golang-deps": "ts-node --esm --transpileOnly ./tools/cache-go-deps.ts"
"cache-golang-deps": "ts-node --esm --transpileOnly ./tools/cache-go-deps.ts",
"caddy": "caddy reverse-proxy --from twir.satont.localhost --to 127.0.0.1:3005"
},
"author": "Satont <satontworldwide@gmail.com>",
"devDependencies": {
Expand Down

0 comments on commit 6185467

Please sign in to comment.