mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-17 06:00:20 +02:00
Update utils
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export const constrainSidebarWidth = (num: number) => {
|
||||
if (num < 165) {
|
||||
return 165;
|
||||
}
|
||||
|
||||
if (num > 400) {
|
||||
return 400;
|
||||
}
|
||||
|
||||
return num;
|
||||
};
|
||||
Reference in New Issue
Block a user