Skip to content

Commit c852bce

Browse files
committed
fix: some bugfix
1 parent deabcec commit c852bce

3 files changed

Lines changed: 17 additions & 3 deletions

File tree

src/frontend/client/src/components/Endpoints/ConvoIconURL.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const ConvoIconURL: React.FC<ConvoIconURLProps> = ({
6363
}
6464

6565
return (
66-
<div className="shadow-stroke relative flex h-full items-center justify-center rounded-full bg-white text-black">
66+
<div className="shadow-stroke min-w-6 min-h-6 relative flex h-full items-center justify-center rounded-full bg-white text-black">
6767
<Icon
6868
size={41}
6969
context={context}

src/frontend/platform/src/components/bs-ui/calendar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { Button, buttonVariants } from "../button";
1919
function Calendar({
2020
className,
2121
classNames,
22-
showOutsideDays = true,
22+
showOutsideDays = false,
2323
captionLayout = "label",
2424
buttonVariant = "ghost",
2525
formatters,

src/frontend/platform/src/pages/Dashboard/share.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,31 @@ import { useParams } from "react-router-dom"
55
import { EditorCanvas } from "./components/editor/EditorCanvas"
66
import { DashboardQueryKey } from "./hook"
77
import { useTranslation } from "react-i18next"
8+
import { useEffect } from "react"
9+
import { useEditorDashboardStore } from "@/store/dashboardStore"
810

911
export default function SharePage() {
1012
const params = useParams()
1113
const dashboardId = atob(params.boardId) as string
1214
const { t } = useTranslation('dashboard')
15+
const {
16+
setCurrentDashboardId: setSelectedId,
17+
setCurrentDashboard,
18+
} = useEditorDashboardStore()
1319

1420
const { data: dashboard, isLoading } = useQuery({
1521
queryKey: [DashboardQueryKey, dashboardId],
1622
queryFn: () => getDashboard(dashboardId, true),
1723
})
1824

25+
useEffect(() => {
26+
if (dashboard) {
27+
setCurrentDashboard(dashboard)
28+
setSelectedId(dashboard.id)
29+
}
30+
}, [dashboard, setCurrentDashboard])
31+
32+
1933
if (dashboard?.status === "draft") {
2034
return <div className="size-full flex flex-col items-center justify-center">
2135
<img src={`${__APP_ENV__.BASE_URL}/assets/dashboard/offline.png`} className="size-[400px]" alt="" />
@@ -26,7 +40,7 @@ export default function SharePage() {
2640
return (
2741
<div className="h-screen flex flex-col">
2842
<div className="h-full">
29-
<EditorCanvas isPreviewMode isLoading={isLoading} dashboard={dashboard || null} />
43+
<EditorCanvas isPreviewMode isLoading={isLoading} />
3044
</div>
3145
</div>
3246
)

0 commit comments

Comments
 (0)