From f64b8b567ddb42e08f8206efb954aa7edb96ddf4 Mon Sep 17 00:00:00 2001 From: Douglas Fabris Date: Wed, 21 Jun 2023 22:46:39 -0300 Subject: [PATCH] regression: `Contextualbar` size on wider screens (#29612) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- apps/meteor/client/providers/LayoutProvider.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/meteor/client/providers/LayoutProvider.tsx b/apps/meteor/client/providers/LayoutProvider.tsx index 1ce23027856..85a33fab7a2 100644 --- a/apps/meteor/client/providers/LayoutProvider.tsx +++ b/apps/meteor/client/providers/LayoutProvider.tsx @@ -35,7 +35,8 @@ const LayoutProvider: FC = ({ children }) => { }, size: { sidebar: '240px', - contextualBar: breakpoints.includes('sm') ? '380px' : '100%', + // eslint-disable-next-line no-nested-ternary + contextualBar: breakpoints.includes('sm') ? (breakpoints.includes('xl') ? '38%' : '380px') : '100%', }, contextualBarExpanded: breakpoints.includes('sm'), // eslint-disable-next-line no-nested-ternary