refac: chat controls size
This commit is contained in:
1 parent
580ad46036
commit
8fc178ae91
2 files changed
+6
-8
No files matched your search
@@ -289,11 +289,11 @@
|
||||
if (controlPane && !$mobile) {
|
||||
try {
|
||||
if (value) {
|
||||
controlPane.resize(
|
||||
parseInt(localStorage.getItem('chat-controls-size') || '35')
|
||||
? parseInt(localStorage.getItem('chat-controls-size') || '35')
|
||||
: 35
|
||||
);
|
||||
const currentSize = controlPane.getSize();
|
||||
|
||||
if (currentSize === 0) {
|
||||
controlPane.resize(parseInt(localStorage?.chatControlsSize ?? '30'));
|
||||
}
|
||||
} else {
|
||||
controlPane.resize(0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user