mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-02-15 01:02:23 +00:00
embedded mode more responsive
This commit is contained in:
parent
34f6675c8b
commit
0689ff5a8e
@ -46,9 +46,11 @@ export function AppShell({ appName, children, assetsApi }: { appName: string, ch
|
||||
draggable
|
||||
pauseOnHover
|
||||
theme="light" />
|
||||
<NavBar appName={appName}></NavBar>
|
||||
<div id="app-content" className="tw-flex tw-!pl-[77px]">
|
||||
{children}
|
||||
<div className='tw-flex tw-flex-col tw-h-full'>
|
||||
<NavBar appName={appName}></NavBar>
|
||||
<div id="app-content" className="tw-flex-grow">
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
</QuestsProvider>
|
||||
</ClusterRefProvider>
|
||||
|
||||
@ -6,7 +6,7 @@ type ContentProps = {
|
||||
|
||||
export function Content({children} : ContentProps) {
|
||||
return (
|
||||
<div className='tw-flex tw-flex-col tw-w-full tw-bg-base-200 tw-relative'>
|
||||
<div className='tw-flex tw-flex-col tw-w-full tw-h-full tw-bg-base-200 tw-relative'>
|
||||
{children}
|
||||
</div>
|
||||
|
||||
|
||||
@ -75,7 +75,7 @@ function UtopiaMap({
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className={(selectNewItemPosition != null ? "crosshair-cursor-enabled" : undefined)}>
|
||||
<div className={`tw-h-full ${(selectNewItemPosition != null ? "crosshair-cursor-enabled" : undefined)}`}>
|
||||
<MapContainer ref={mapDivRef} style={{ height: height, width: width }} center={new LatLng(center[0], center[1])} zoom={zoom} zoomControl={false} maxZoom={19}>
|
||||
<Outlet></Outlet>
|
||||
<Control position='topLeft' zIndex="1000">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user