Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

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

Thomasff22c577ac60
diff --git a/apps/nextjs/src/app/[locale]/boards/[name]/layout.tsx b/apps/nextjs/src/app/[locale]/boards/[name]/layout.tsx
index 0c5fd10e0..0250e2055 100644
--- a/apps/nextjs/src/app/[locale]/boards/[name]/layout.tsx
+++ b/apps/nextjs/src/app/[locale]/boards/[name]/layout.tsx
@@ -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);
},
diff --git a/apps/nextjs/src/app/[locale]/boards/_layout-creator.tsx b/apps/nextjs/src/app/[locale]/boards/_layout-creator.tsx
index 26931af33..ae0d3ede3 100644
--- a/apps/nextjs/src/app/[locale]/boards/_layout-creator.tsx
+++ b/apps/nextjs/src/app/[locale]/boards/_layout-creator.tsx
@@ -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