mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-01 22:32:32 -08:00
added sizes for the remaining objects
This commit is contained in:
1 parent
4268444cc7
commit
8d32e1b929
3 files changed
+17
-17
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { useSetAtom } from 'jotai';
|
||||
import { useParams } from 'react-router-dom';
|
||||
import { Box, Text, TooltipProvider, Tooltip, Icon, Icons, IconButton } from 'folds';
|
||||
import { Box, Text, TooltipProvider, Tooltip, Icon, Icons, IconButton, toRem } from 'folds';
|
||||
import { Page, PageHeader } from '../../components/page';
|
||||
import { callChatAtom } from '../../state/callEmbed';
|
||||
import { RoomView } from './RoomView';
|
||||
@@ -18,26 +18,26 @@ export function CallChatView() {
|
||||
|
||||
const handleClose = () => setChat(false);
|
||||
|
||||
const [threadSidebarWidth, setThreadSidebarWidth] = useSetting(settingsAtom, 'vcmsgSidebarWidth');
|
||||
const [curWidth, setCurWidth] = useState(threadSidebarWidth);
|
||||
const [vcmsgSidebarWidth, setVcmsgSidebarWidth] = useSetting(settingsAtom, 'vcmsgSidebarWidth');
|
||||
const [curWidth, setCurWidth] = useState(vcmsgSidebarWidth);
|
||||
useEffect(() => {
|
||||
setCurWidth(threadSidebarWidth);
|
||||
}, [threadSidebarWidth]);
|
||||
setCurWidth(vcmsgSidebarWidth);
|
||||
}, [vcmsgSidebarWidth]);
|
||||
return (
|
||||
<>
|
||||
{!mobileOrTablet() && (
|
||||
<SidebarResizer
|
||||
setCurWidth={setCurWidth}
|
||||
sidebarWidth={threadSidebarWidth}
|
||||
setSidebarWidth={setThreadSidebarWidth}
|
||||
minValue={50}
|
||||
maxValue={1200}
|
||||
sidebarWidth={vcmsgSidebarWidth}
|
||||
setSidebarWidth={setVcmsgSidebarWidth}
|
||||
minValue={300}
|
||||
maxValue={1000}
|
||||
rightSided
|
||||
/>
|
||||
)}
|
||||
<Page
|
||||
style={{
|
||||
width: screenSize === ScreenSize.Desktop ? curWidth : '100%',
|
||||
width: screenSize === ScreenSize.Desktop ? toRem(curWidth) : '100%',
|
||||
flexShrink: 0,
|
||||
flexGrow: 0,
|
||||
}}
|
||||
|
||||
@@ -454,8 +454,8 @@ export function ThreadBrowser({ room, onOpenThread, onClose, overlay }: ThreadBr
|
||||
setCurWidth={setCurWidth}
|
||||
sidebarWidth={threadSidebarWidth}
|
||||
setSidebarWidth={setThreadSidebarWidth}
|
||||
minValue={50}
|
||||
maxValue={1200}
|
||||
minValue={150}
|
||||
maxValue={500}
|
||||
rightSided
|
||||
/>
|
||||
)}
|
||||
|
||||
@@ -761,8 +761,8 @@ export function ThreadDrawer({ room, threadRootId, onClose, overlay }: ThreadDra
|
||||
setCurWidth={setCurWidth}
|
||||
sidebarWidth={threadSidebarWidth}
|
||||
setSidebarWidth={setThreadSidebarWidth}
|
||||
minValue={50}
|
||||
maxValue={1200}
|
||||
minValue={150}
|
||||
maxValue={500}
|
||||
rightSided
|
||||
/>
|
||||
)}
|
||||
@@ -829,12 +829,12 @@ export function ThreadDrawer({ room, threadRootId, onClose, overlay }: ThreadDra
|
||||
setCurWidth={setCurHeight}
|
||||
sidebarWidth={threadRootHeight}
|
||||
setSidebarWidth={setThreadRootHeight}
|
||||
minValue={50}
|
||||
maxValue={1200}
|
||||
minValue={60}
|
||||
maxValue={700}
|
||||
topSided
|
||||
/>
|
||||
<div
|
||||
style={{ width: '100%', height: '1px', backgroundColor: color.Surface.ContainerLine }}
|
||||
style={{ width: '100%', height: toRem(1), backgroundColor: color.Surface.ContainerLine }}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user