From f22a16d42a2e9e377d833c22c3cfc5e71d06df7d Mon Sep 17 00:00:00 2001 From: nguyen van thai Date: Mon, 3 Jun 2024 12:27:58 +0700 Subject: [PATCH] thainv-dev: Fix UI --- assets/styles/style.scss | 20 ++++- .../templates/articles/individuals/Card.vue | 2 +- .../templates/categories/BasicCategories.vue | 2 +- .../templates/other/breadcrumb/Default.vue | 87 +++---------------- .../other/copyLinks/ArticleButton.vue | 47 ++++------ .../templates/other/details/emagazine.vue | 6 +- .../templates/other/details/infographics.vue | 33 ++----- pages/bai-viet/[slug].vue | 12 ++- uno.config.ts | 4 +- 9 files changed, 70 insertions(+), 143 deletions(-) diff --git a/assets/styles/style.scss b/assets/styles/style.scss index 468c8a7..21174f1 100644 --- a/assets/styles/style.scss +++ b/assets/styles/style.scss @@ -2,8 +2,26 @@ > .section-container { > .layout_define { > .section_layout { - @apply gap-x-10 #{!important} + @apply gap-x-10 #{!important}; } } } +} + +figure { + margin: auto !important; +} + +div[layout="ARTICLE_DETAIL_EMAGAZINE"] { + & p,& figure.align-center-image, & #sub, & #title, & #intro { + @apply lg:max-w-640px mx-auto; + } + + @at-root .section_layout{ + + & div[layout="BREADCRUM_DEFAULT"] { + @apply lg:max-w-640px mx-auto; + } + } + } \ No newline at end of file diff --git a/components/dynamic-page/page-component/templates/articles/individuals/Card.vue b/components/dynamic-page/page-component/templates/articles/individuals/Card.vue index 3750238..68e349c 100644 --- a/components/dynamic-page/page-component/templates/articles/individuals/Card.vue +++ b/components/dynamic-page/page-component/templates/articles/individuals/Card.vue @@ -56,7 +56,7 @@ const drop = (e: any) => {