From f748cbc5215145e9acc4f6a9737ac5d7b779b7fc Mon Sep 17 00:00:00 2001 From: Clark McAdoo Date: Fri, 7 Jan 2022 10:42:07 -0600 Subject: [PATCH] fix: WIP - initial updates to I/O mobile view, updated search styles and moved "categories" button --- src/pages/instant-observability.js | 190 +++++++++++++++-------------- 1 file changed, 96 insertions(+), 94 deletions(-) diff --git a/src/pages/instant-observability.js b/src/pages/instant-observability.js index 6ca279f7a..590deb277 100644 --- a/src/pages/instant-observability.js +++ b/src/pages/instant-observability.js @@ -193,7 +193,6 @@ const QuickstartsPage = ({ data, location }) => { css={css` --sidebar-width: 300px; --banner-height: 308px; - display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); grid-template-areas: 'sidebar main'; @@ -204,6 +203,7 @@ const QuickstartsPage = ({ data, location }) => { max-width: var(--site-max-width); @media screen and (max-width: ${QUICKSTARTS_COLLAPSE_BREAKPOINT}) { + grid-gap: 0; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'sidebar' @@ -290,19 +290,19 @@ const QuickstartsPage = ({ data, location }) => {
{ } @media (max-width: ${QUICKSTARTS_COLLAPSE_BREAKPOINT}) { background-color: var(--primary-background-color); + padding: 0; } `} > @@ -334,7 +335,8 @@ const QuickstartsPage = ({ data, location }) => { onChange={(e) => setSearch(e.target.value)} css={css` --svg-color: var(--color-neutrals-700); - + box-shadow: none; + max-width: 630px; svg { width: 16px; height: 16px; @@ -346,12 +348,9 @@ const QuickstartsPage = ({ data, location }) => { } @media screen and (max-width: ${QUICKSTARTS_COLLAPSE_BREAKPOINT}) { + font-size: 11px; max-width: 100%; } - - @media screen and (min-width: ${QUICKSTARTS_COLLAPSE_BREAKPOINT}) { - max-width: 630px; - } `} /> { } `} /> - {isMobile && ( -
+ {isMobile && ( +
+ + - - +

+ Category +

+ {categoriesWithCount.map( + ({ displayName, value, count }) => ( + + ) + )} +
+
-

- Category -

-
- {categoriesWithCount.map( - ({ displayName, value, count }) => ( - - ) - )} -
-
- -
+ OK +
-
-
- )} -
- +
+ + + )}