mirror of
https://github.com/open-webui/open-webui
synced 2025-01-31 15:01:00 +00:00
refac: drag region
This commit is contained in:
parent
c4486b4a77
commit
3a3764bf68
@ -360,12 +360,17 @@
|
|||||||
localStorage.sidebar = value;
|
localStorage.sidebar = value;
|
||||||
|
|
||||||
// nav element is not available on the first render
|
// nav element is not available on the first render
|
||||||
const navElement = document.getElementsByTagName('nav')[0];
|
|
||||||
|
|
||||||
if (!value) {
|
if ($mobile) {
|
||||||
navElement.style['-webkit-app-region'] = 'drag';
|
const navElement = document.getElementsByTagName('nav')[0];
|
||||||
|
|
||||||
|
if (!value) {
|
||||||
|
navElement.style['-webkit-app-region'] = 'drag';
|
||||||
|
} else {
|
||||||
|
navElement.style['-webkit-app-region'] = 'no-drag';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
navElement.style['-webkit-app-region'] = 'no-drag';
|
navElement.style['-webkit-app-region'] = 'drag';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user