From f637e073bd8cbc0b41410f21bd39604f9ecac6d5 Mon Sep 17 00:00:00 2001 From: Piotr Rogowski Date: Sun, 16 Jan 2022 18:53:36 +0100 Subject: [PATCH] Fix for mobile (#379) --- src/components/TopBar.tsx | 14 +++++++------- src/pages/Info.tsx | 25 +++++++++++++------------ src/pages/Upload.tsx | 25 +++++++++++++------------ src/themes/common.less | 2 +- 4 files changed, 34 insertions(+), 32 deletions(-) diff --git a/src/components/TopBar.tsx b/src/components/TopBar.tsx index eff4ddd..1b4fd07 100644 --- a/src/components/TopBar.tsx +++ b/src/components/TopBar.tsx @@ -107,7 +107,7 @@ const TopBar = ({ tuneId }: { tuneId: string | null }) => { }); const tabs = ( - + { return (
- + {tuneId ? tabs : } - + - {isMac ? '⌘' : 'CTRL'} SHIFT @@ -158,7 +158,7 @@ const TopBar = ({ tuneId }: { tuneId: string | null }) => { }> { trigger={['click']} > diff --git a/src/pages/Info.tsx b/src/pages/Info.tsx index c3c9bf3..0bdf02c 100644 --- a/src/pages/Info.tsx +++ b/src/pages/Info.tsx @@ -21,6 +21,7 @@ const containerStyle = { margin: '0 auto', }; const rowProps = { gutter: 10 }; +const colProps = { span: 24, sm: 12 }; const mapStateToProps = (state: AppState) => ({ tuneData: state.tuneData, @@ -40,55 +41,55 @@ const Info = ({ tuneData }: { tuneData: TuneDataState }) => { Details
- + - + - + - + - + - + - + - + - + - + - + - + diff --git a/src/pages/Upload.tsx b/src/pages/Upload.tsx index bb87405..70e1ed1 100644 --- a/src/pages/Upload.tsx +++ b/src/pages/Upload.tsx @@ -92,6 +92,7 @@ const containerStyle = { const maxFileSizeMB = 10; const descriptionEditorHeight = 260; const rowProps = { gutter: 10 }; +const colProps = { span: 24, sm: 12 }; const tuneIcon = () => ; const logIcon = () => ; @@ -492,55 +493,55 @@ const UploadPage = () => { Details - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/src/themes/common.less b/src/themes/common.less index bfb5dc0..27f8eff 100644 --- a/src/themes/common.less +++ b/src/themes/common.less @@ -1,7 +1,7 @@ @primary-color: #126ec3; @text-light: #fff; -@border-radius-base: 5px; +@border-radius-base: 6px; @layout-header-padding: 0 15px; @layout-header-height: 45px;