From 6eea996afbcf075a151c82a45a935a3ad5936840 Mon Sep 17 00:00:00 2001 From: arielherself Date: Mon, 27 Nov 2023 12:56:21 +0800 Subject: [PATCH] feat: ui improvement --- .idea/workspace.xml | 3 ++- api/handshake.js | 8 ++++++-- src/App.js | 8 ++++---- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index a55d1bf..945bba4 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,6 +6,7 @@ + diff --git a/api/handshake.js b/api/handshake.js index a7891a5..b3af098 100644 --- a/api/handshake.js +++ b/api/handshake.js @@ -1,6 +1,10 @@ const __DEBUG__=1, - __APP_VERSION__='v0.1.1a', - __APP_INTRO__='We can display a real-looking polyline when you select locations on the map!'; + __APP_VERSION__='v0.1.2a', + __APP_INTRO__=` +Relocating Support
+Can't find where you are from? We now memorize the last location you visited. Tap the "Relocate" button to find your way home.

+This update also include several stability and UI improvements. +`; export default function handler(req,res){ res.status(200).json({ diff --git a/src/App.js b/src/App.js index 2e7795b..88164cc 100644 --- a/src/App.js +++ b/src/App.js @@ -69,11 +69,11 @@ export default function App() { }[state], display: 'flex', width: version !== '' ? '60%' : 'auto', - height: version !== '' ? '60%' : 'auto', + height: 'auto', maxWidth: '50vw', }} > - + + sx={{margin: 'auto', maxWidth: '80%'}}>
- setFeatureOpen(false)} sx={{display: version!==''?'flex':'none', position: 'absolute', bottom: '10%', left: '50%', transform: 'translateX(-50%)', width: '100%'}}> + setFeatureOpen(false)} sx={{display: version!==''?'flex':'none', bottom: '10%', width: '100%'}}>