mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-07 04:27:16 +03:00
fix(electron): whitescreen issue (#7742)
1. non-blurred mode whitescreen issue 2. should not close tab with cmd+w for pinned tabs
This commit is contained in:
parent
0d7de67e01
commit
a03831f2a2
@ -14,6 +14,10 @@ html {
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html[data-active='true'] {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
html:is([data-active='false'], [data-dragging='true']) * {
|
html:is([data-active='false'], [data-dragging='true']) * {
|
||||||
-webkit-app-region: no-drag !important;
|
-webkit-app-region: no-drag !important;
|
||||||
}
|
}
|
||||||
|
@ -316,7 +316,7 @@ export class WebContentViewsManager {
|
|||||||
};
|
};
|
||||||
|
|
||||||
closeTab = async (id?: string) => {
|
closeTab = async (id?: string) => {
|
||||||
if (!id) {
|
if (!id && !this.activeWorkbenchMeta?.pinned) {
|
||||||
id = this.activeWorkbenchId;
|
id = this.activeWorkbenchId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user