mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 13:00:13 +02:00
Add files
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
export const constrainSidebarWidth = (num: number) => {
|
||||
if (num < 200) {
|
||||
return 200;
|
||||
}
|
||||
|
||||
if (num > 400) {
|
||||
return 400;
|
||||
}
|
||||
|
||||
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