mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44: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) {
|
document.addEventListener('mousemove', function (e) {
|
||||||
if (startX) {
|
if (startX) {
|
||||||
var newWidth = startWidth + (e.clientX - startX);
|
var newWidth = startWidth + (e.clientX - startX);
|
||||||
document.documentElement.style.setProperty('--sidebar-width', sidebar.style.width);
|
document.documentElement.style.setProperty('--sidebar-width', Math.min(1000, Math.max(100, newWidth)) + 'px');
|
||||||
sidebar.style.width = Math.max(200, newWidth) + 'px';
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user