mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 04:50:12 +02:00
Handle right sidebar
This commit is contained in:
@@ -9,3 +9,15 @@ export const constrainSidebarWidth = (num: number) => {
|
||||
|
||||
return num;
|
||||
};
|
||||
|
||||
export const constrainRightSidebarWidth = (num: number) => {
|
||||
if (num < 250) {
|
||||
return 250;
|
||||
}
|
||||
|
||||
if (num > 960) {
|
||||
return 960;
|
||||
}
|
||||
|
||||
return num;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user