From fea498da349a950340adee94e8249a5a4d61f36d Mon Sep 17 00:00:00 2001 From: Eirik Lillebo Date: Mon, 7 Oct 2024 21:46:24 +0200 Subject: [PATCH] fix(project): moved layout to libs/ui + main-menu padding fix --- apps/docs/src/app/[lang]/layout.tsx | 2 +- libs/ui/src/lib/header/header.module.scss | 2 +- .../lib}/layouts/feedback-layout/feedback-layout.module.scss | 0 .../ui/src/lib}/layouts/feedback-layout/index.tsx | 0 libs/ui/src/lib/main-menu/main-menu.module.scss | 1 - 5 files changed, 2 insertions(+), 3 deletions(-) rename {apps/docs/src/app/components => libs/ui/src/lib}/layouts/feedback-layout/feedback-layout.module.scss (100%) rename {apps/docs/src/app/components => libs/ui/src/lib}/layouts/feedback-layout/index.tsx (100%) diff --git a/apps/docs/src/app/[lang]/layout.tsx b/apps/docs/src/app/[lang]/layout.tsx index d247f194..8d488cc0 100644 --- a/apps/docs/src/app/[lang]/layout.tsx +++ b/apps/docs/src/app/[lang]/layout.tsx @@ -3,7 +3,7 @@ import RootLayout, { generateStaticParams } from '@fdk-frontend/ui/layout-root'; import { type Locale, getDictionary } from '@fdk-frontend/dictionaries'; -import FeedbackLayout from '../components/layouts/feedback-layout'; +import FeedbackLayout from '@fdk-frontend/ui/layouts/feedback-layout'; export type DocsLayoutProps = { params: { diff --git a/libs/ui/src/lib/header/header.module.scss b/libs/ui/src/lib/header/header.module.scss index 2cc64085..d4009cba 100644 --- a/libs/ui/src/lib/header/header.module.scss +++ b/libs/ui/src/lib/header/header.module.scss @@ -133,6 +133,6 @@ .drawerInner { max-width: 1000px; margin: auto; - padding: 1rem; + padding: 1rem 2rem; } } diff --git a/apps/docs/src/app/components/layouts/feedback-layout/feedback-layout.module.scss b/libs/ui/src/lib/layouts/feedback-layout/feedback-layout.module.scss similarity index 100% rename from apps/docs/src/app/components/layouts/feedback-layout/feedback-layout.module.scss rename to libs/ui/src/lib/layouts/feedback-layout/feedback-layout.module.scss diff --git a/apps/docs/src/app/components/layouts/feedback-layout/index.tsx b/libs/ui/src/lib/layouts/feedback-layout/index.tsx similarity index 100% rename from apps/docs/src/app/components/layouts/feedback-layout/index.tsx rename to libs/ui/src/lib/layouts/feedback-layout/index.tsx diff --git a/libs/ui/src/lib/main-menu/main-menu.module.scss b/libs/ui/src/lib/main-menu/main-menu.module.scss index b6dff16d..ee1a3666 100644 --- a/libs/ui/src/lib/main-menu/main-menu.module.scss +++ b/libs/ui/src/lib/main-menu/main-menu.module.scss @@ -1,7 +1,6 @@ @import '@fdk-frontend/ui/core/mixins'; .mainMenu { - padding: 0 1rem; container-type: inline-size; @media (max-width: 800px) {