From d7860d06257daa7594c939be088c0cdd59be51b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Tue, 15 Oct 2024 13:15:20 +0200 Subject: [PATCH 1/2] fix: fixed content width on wide displays --- apify-docs-theme/src/theme/custom.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apify-docs-theme/src/theme/custom.css b/apify-docs-theme/src/theme/custom.css index 56cda83e76..1e27053b77 100644 --- a/apify-docs-theme/src/theme/custom.css +++ b/apify-docs-theme/src/theme/custom.css @@ -447,6 +447,12 @@ html[data-theme="dark"] .DocSearch-Button .DocSearch-Search-Icon { margin: auto; } +@media (min-width: 1440px) { + .main-wrapper > div { + width: var(--max-layout-width); + } +} + @media (max-width: 960px) { .main-wrapper > div { max-width: 100%; From ec052a0dff7b2519cf08ec8af2a8990837bb605b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Tue, 15 Oct 2024 14:32:25 +0200 Subject: [PATCH 2/2] fix: use `width:100%` for the main container --- apify-docs-theme/src/theme/custom.css | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apify-docs-theme/src/theme/custom.css b/apify-docs-theme/src/theme/custom.css index 1e27053b77..6073f589e3 100644 --- a/apify-docs-theme/src/theme/custom.css +++ b/apify-docs-theme/src/theme/custom.css @@ -445,12 +445,7 @@ html[data-theme="dark"] .DocSearch-Button .DocSearch-Search-Icon { .main-wrapper > div { max-width: var(--max-layout-width); margin: auto; -} - -@media (min-width: 1440px) { - .main-wrapper > div { - width: var(--max-layout-width); - } + width: 100%; } @media (max-width: 960px) {