From a0954b790d20e6072ce5d4ff33e94fe900a7d436 Mon Sep 17 00:00:00 2001 From: shenjunjian <40288193@qq.com> Date: Wed, 6 Nov 2024 19:47:33 -0800 Subject: [PATCH 1/3] fix(site): fix the issue the official website is not fully displayed in small screen sizes --- examples/sites/src/views/components/components.vue | 6 ++++-- examples/sites/src/views/layout/layout.vue | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/sites/src/views/components/components.vue b/examples/sites/src/views/components/components.vue index ffe6be37ee..1dc57a6627 100644 --- a/examples/sites/src/views/components/components.vue +++ b/examples/sites/src/views/components/components.vue @@ -816,7 +816,6 @@ export default defineComponent({ flex: 1; display: flex; justify-content: center; - min-width: 680px; padding: 0 40px; } @@ -837,7 +836,6 @@ export default defineComponent({ :deep(> .tiny-tabs__header) { position: sticky; - top: 90px; z-index: var(--docs-tabs-header-zindex); background-color: #fff; @@ -974,6 +972,10 @@ export default defineComponent({ column-gap: 16px; } +.docs-content-main { + overflow: auto; +} + .cmp-container { p { font-size: 16px; diff --git a/examples/sites/src/views/layout/layout.vue b/examples/sites/src/views/layout/layout.vue index 40c8c54d8f..d914eb795e 100644 --- a/examples/sites/src/views/layout/layout.vue +++ b/examples/sites/src/views/layout/layout.vue @@ -196,9 +196,12 @@ export default defineComponent({ .content-layout { display: flex; --layout-tree-menu-input-height: 32px; - --layout-content-main-min-width: 600px; + --layout-content-main-min-width: 200px; --layout-content-main-max-width: 1000px; } +@media screen and (max-width: 640px) { + --layout-content-main-min-width: 600px; +} .tiny-tooltip.tiny-tooltip__popper.is-light.docs-tooltip { border: none; From 6a363c1e2a27f4400be82ed60ed2a2babdf68564 Mon Sep 17 00:00:00 2001 From: shenjunjian <40288193@qq.com> Date: Wed, 6 Nov 2024 22:01:14 -0800 Subject: [PATCH 2/3] fix(playground): fix the issue, the playground site is not fully displayed in small screen sizes --- examples/sites/playground/App.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/examples/sites/playground/App.vue b/examples/sites/playground/App.vue index 0d5c0c6cb5..ee871c1329 100644 --- a/examples/sites/playground/App.vue +++ b/examples/sites/playground/App.vue @@ -288,9 +288,9 @@ function share() {