Center client toolbar at top by default instead of right side
This commit is contained in:
1 parent
7cc88287b8
commit
4bb908ecf7
1 file changed
+1
-1
@@ -123,7 +123,7 @@ export function ClientView({
|
|||||||
} catch {}
|
} catch {}
|
||||||
|
|
||||||
const w = toolbarRef.current?.offsetWidth ?? 220;
|
const w = toolbarRef.current?.offsetWidth ?? 220;
|
||||||
setPos({ top: 8, left: window.innerWidth - w - 8 });
|
setPos({ top: 8, left: Math.round((window.innerWidth - w) / 2) });
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in new issue
Block a user