From 777b1175317e16e3463a55a8487053533b5888e4 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Sat, 2 Jan 2021 12:54:00 -0700 Subject: [PATCH] fix safari specific issues --- hyperglass/ui/components/header/title.tsx | 7 +++ hyperglass/ui/components/layout/frame.tsx | 13 +++-- .../ui/components/layout/resetButton.tsx | 54 +++++++++++-------- hyperglass/ui/package.json | 1 + hyperglass/ui/pages/_app.tsx | 5 +- hyperglass/ui/yarn.lock | 12 +++++ 6 files changed, 65 insertions(+), 27 deletions(-) diff --git a/hyperglass/ui/components/header/title.tsx b/hyperglass/ui/components/header/title.tsx index 51ba44d..52f4268 100644 --- a/hyperglass/ui/components/header/title.tsx +++ b/hyperglass/ui/components/header/title.tsx @@ -115,6 +115,13 @@ export const Title = (props: TTitle) => { flexDir="column" minH={titleHeight} justifyContent="center" + /* flexBasis + This is a fix for Safari specifically. LMGTFY: Safari flex-basis width. Nutshell: Safari + is stupid, in that it infers the default flex-basis from the width, 100%. Other browsers + don't do this. Without the below fix, the logo will appear gigantic, filling the entire + div up to the parent's max-width. The fix is to hard-code a flex-basis width. + */ + flexBasis={{ base: '100%', lg: '33%' }} mt={[null, isSubmitting.value ? null : 'auto']} {...rest}>