fix: keep dashboard CSS out of board settings (#7066)

Related to #7062. Keep dashboard custom CSS out of dashboard settings.
This commit is contained in:
Thomas authored and GitHub committed 2026-10-07 12:12:43 +02:00
1 parent fb435eff41
commit ff22c577ac
2 files changed
+4 -1

No files matched your search

@@ -5,6 +5,7 @@ import { createBoardLayout } from "../_layout-creator";
export default createBoardLayout<{ locale: string; name: string }>({
headerActions: <BoardOtherHeaderActions />,
withCustomCss: false,
async getInitialBoardAsync({ name }) {
return await getBoardByNameAsync(name);
},
@@ -34,6 +34,7 @@ interface CreateBoardLayoutProps<TParams extends Params> {
headerBoardSettingsAction?: JSX.Element;
getInitialBoardAsync: (params: TParams) => Promise<Board>;
withTour?: boolean;
withCustomCss?: boolean;
}
export const createBoardLayout = <TParams extends Params>({
@@ -42,6 +43,7 @@ export const createBoardLayout = <TParams extends Params>({
headerBoardSettingsAction,
getInitialBoardAsync: getInitialBoard,
withTour = false,
withCustomCss = true,
}: CreateBoardLayoutProps<TParams>) => {
const Layout = async ({
params,
@@ -107,7 +109,7 @@ export const createBoardLayout = <TParams extends Params>({
<BoardReadyProvider>
<BoardMantineProvider defaultColorScheme={colorScheme}>
<ModalProvider>
<CustomCss />
{withCustomCss && <CustomCss />}
<BoardTourGate enabled={shouldRunBoardTour}>
<ClientShell hasNavigation={false}>
<MainHeader