diff --git a/apps/web/src/api/buster-electric/reports/hooks.ts b/apps/web/src/api/buster-electric/reports/hooks.ts index ddbd581dc..489e936b9 100644 --- a/apps/web/src/api/buster-electric/reports/hooks.ts +++ b/apps/web/src/api/buster-electric/reports/hooks.ts @@ -24,7 +24,6 @@ export const useTrackAndUpdateReportChanges = ({ DEFAULT_UPDATE_OPERATIONS, (report) => { if (report.value) { - console.log('report', report.value); const queryKey = reportsQueryKeys.reportsGetReport(reportId).queryKey; queryClient.setQueryData(queryKey, (v) => { if (!v) return v; diff --git a/apps/web/src/components/ui/report/EditorContainer.tsx b/apps/web/src/components/ui/report/EditorContainer.tsx index eed306ca1..5cc719b5e 100644 --- a/apps/web/src/components/ui/report/EditorContainer.tsx +++ b/apps/web/src/components/ui/report/EditorContainer.tsx @@ -10,7 +10,7 @@ interface EditorContainerProps { } const editorContainerVariants = cva( - 'relative w-full cursor-text bg-transparent caret-primary select-text selection:bg-brand/12 focus-visible:outline-none [&_.slate-selection-area]:z-50 [&_.slate-selection-area]:border [&_.slate-selection-area]:border-brand/25 [&_.slate-selection-area]:bg-brand/15', + 'relative w-full cursor-text bg-transparent caret-primary select-text selection:bg-brand/15 focus-visible:outline-none [&_.slate-selection-area]:z-50 [&_.slate-selection-area]:border [&_.slate-selection-area]:border-brand/25 [&_.slate-selection-area]:bg-brand/15', { variants: { diff --git a/apps/web/src/controllers/ReportPageControllers/ReportPageController.tsx b/apps/web/src/controllers/ReportPageControllers/ReportPageController.tsx index 2683f9c55..855cbc17b 100644 --- a/apps/web/src/controllers/ReportPageControllers/ReportPageController.tsx +++ b/apps/web/src/controllers/ReportPageControllers/ReportPageController.tsx @@ -25,6 +25,7 @@ export const ReportPageController: React.FC<{ const isStreamingMessage = useChatIndividualContextSelector((x) => x.isStreamingMessage); const content: ReportElementsWithIds = report?.content || []; + const commonClassName = 'sm:px-[max(64px,calc(50%-350px))]'; const { mutate: updateReport } = useUpdateReport(); @@ -46,8 +47,6 @@ export const ReportPageController: React.FC<{ debouncedUpdateReport({ reportId, content }); }); - const commonClassName = 'sm:px-[max(64px,calc(50%-350px))]'; - useTrackAndUpdateReportChanges({ reportId, subscribe: isStreamingMessage }); return (