Skip to content

Commit e8cffbd

Browse files
committed
feat: update draggable library
1 parent 5d9bebb commit e8cffbd

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@ecromaneli/search-engine": "^3.0.0",
5454
"auto-launch": "^5.0.6",
5555
"electron-context-menu": "^4.1.2",
56-
"electron-draggable": "^1.5.3",
56+
"electron-draggable": "^1.6.1",
5757
"electron-findbar": "^3.7.0",
5858
"electron-store": "^11.0.2",
5959
"electron-updater": "^6.8.3",

src/service/PreferencesService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class PreferencesService {
5151
AppState.preferences = win;
5252

5353
const fps = Storage.getSettings(Settings.DRAG_REFRESH_RATE) as number || null;
54-
Draggable.from(win, { fps, selector: '.sidebar-header, .main-header' });
54+
Draggable.from(win, { fps, selector: '.sidebar-header, .main-header', exclude: '.exit-btn' });
5555

5656
win.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true });
5757
this.buildContextMenu();

web/assets/styles/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ body {
10381038
}
10391039

10401040
.icon-quick-actions {
1041-
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
1041+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M9.504 1.132a.5.5 0 0 1 .252.564L8.528 6h4.222a.5.5 0 0 1 .384.82l-6.5 7.5a.5.5 0 0 1-.876-.456L7.028 9.5H2.75a.5.5 0 0 1-.384-.82l6.5-7.5a.5.5 0 0 1 .638-.048z'/%3E%3C/svg%3E");
10421042
}
10431043

10441044
/* QUICK ACTIONS VARIABLES ============ */

web/preferences/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const app = Vue.createApp({
1212
template: /*html*/ `
1313
<nav class="sidebar">
1414
<div class="sidebar-header">
15-
<span class="sidebar-title">{{ $i18n.preferences.title }}</span>
15+
<span class="sidebar-title">Handbook</span>
1616
</div>
1717
<ul class="sidebar-menu">
1818
<li class="sidebar-item" :class="{ active: tab === 'pages' }" @click="tab = 'pages'">

0 commit comments

Comments
 (0)