mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
Update main.js
This commit is contained in:
parent
98fe465e95
commit
d8e9a8915c
@ -56,8 +56,7 @@ window.$docsify = {
|
||||
document.addEventListener('mousemove', function (e) {
|
||||
if (startX) {
|
||||
var newWidth = startWidth + (e.clientX - startX);
|
||||
document.documentElement.style.setProperty('--sidebar-width', sidebar.style.width);
|
||||
sidebar.style.width = Math.max(200, newWidth) + 'px';
|
||||
document.documentElement.style.setProperty('--sidebar-width', Math.min(1000, Math.max(100, newWidth)) + 'px');
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user