Compare commits
2 Commits
master
...
typosaurus
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
131f988bea | ||
|
|
1c31c1d6a5 |
1
.dpc/verify_cache.json
Normal file
1
.dpc/verify_cache.json
Normal file
File diff suppressed because one or more lines are too long
@ -115,7 +115,6 @@ devii-terminal.devii-state-fullscreen .devii-window {
|
|||||||
}
|
}
|
||||||
|
|
||||||
devii-terminal.devii-state-normal .devii-window {
|
devii-terminal.devii-state-normal .devii-window {
|
||||||
resize: both;
|
|
||||||
}
|
}
|
||||||
devii-terminal.devii-state-normal .devii-titlebar {
|
devii-terminal.devii-state-normal .devii-titlebar {
|
||||||
cursor: move;
|
cursor: move;
|
||||||
|
|||||||
@ -86,6 +86,7 @@ export class DeviiTerminal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_canOpenOnGesture() {
|
_canOpenOnGesture() {
|
||||||
|
if (this.element && this.element.state !== "closed") return false;
|
||||||
if (document.querySelector(".modal-overlay.visible")) return false;
|
if (document.querySelector(".modal-overlay.visible")) return false;
|
||||||
if (document.querySelector(".dialog-overlay.visible")) return false;
|
if (document.querySelector(".dialog-overlay.visible")) return false;
|
||||||
if (document.querySelector(".context-menu.visible")) return false;
|
if (document.querySelector(".context-menu.visible")) return false;
|
||||||
|
|||||||
@ -297,8 +297,8 @@ export default class FloatingWindow extends Component {
|
|||||||
if (!this.geometry) return;
|
if (!this.geometry) return;
|
||||||
const g = this.geometry;
|
const g = this.geometry;
|
||||||
const safeHeight = this._safeViewport.height;
|
const safeHeight = this._safeViewport.height;
|
||||||
g.width = Math.min(g.width, window.innerWidth - 16);
|
g.width = Math.max(320, Math.min(g.width, window.innerWidth - 16));
|
||||||
g.height = Math.min(g.height, safeHeight - 16);
|
g.height = Math.max(220, Math.min(g.height, safeHeight - 16));
|
||||||
g.left = Math.max(8, Math.min(g.left, window.innerWidth - g.width - 8));
|
g.left = Math.max(8, Math.min(g.left, window.innerWidth - g.width - 8));
|
||||||
g.top = Math.max(8, Math.min(g.top, safeHeight - g.height - 8));
|
g.top = Math.max(8, Math.min(g.top, safeHeight - g.height - 8));
|
||||||
}
|
}
|
||||||
@ -409,8 +409,8 @@ export default class FloatingWindow extends Component {
|
|||||||
this._ro = new ResizeObserver(() => {
|
this._ro = new ResizeObserver(() => {
|
||||||
if (this.state === "normal" && this.geometry && !this._drag) {
|
if (this.state === "normal" && this.geometry && !this._drag) {
|
||||||
const rect = this.win.getBoundingClientRect();
|
const rect = this.win.getBoundingClientRect();
|
||||||
this.geometry.width = Math.round(rect.width);
|
this.geometry.width = Math.max(320, Math.round(rect.width));
|
||||||
this.geometry.height = Math.round(rect.height);
|
this.geometry.height = Math.max(220, Math.round(rect.height));
|
||||||
this._persistGeometry();
|
this._persistGeometry();
|
||||||
}
|
}
|
||||||
this._syncControls();
|
this._syncControls();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user