Add hack for buttons position in IO mode

This commit is contained in:
Abdo 2025-07-27 01:34:21 +03:00
parent 1ce564adf0
commit 0f062563a6
3 changed files with 4 additions and 10 deletions

View file

@ -1381,10 +1381,6 @@ components and functionality for general note editing.
height: 100%;
}
:global(.image-occlusion) {
position: fixed;
}
:global(.image-occlusion .tab-buttons) {
display: none !important;
}

View file

@ -93,14 +93,12 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<style lang="scss">
.editor-main {
position: absolute;
top: 42px;
left: 36px;
position: relative;
bottom: 2px;
right: 2px;
border: 1px solid var(--border);
overflow: auto;
outline: none !important;
height: 90vh;
}
:global([dir="rtl"]) .editor-main {

View file

@ -241,8 +241,8 @@ const fitCanvasVptScale = (canvas: fabric.Canvas) => {
const getScaleRatio = (boundingBox: Size) => {
const h1 = boundingBox.height!;
const w1 = boundingBox.width!;
const w2 = innerWidth - 42;
let h2 = window.innerHeight;
const w2 = innerWidth;
let h2 = window.innerHeight * 0.9;
h2 = isDesktop() ? h2 - 79 : h2 - 48;
return Math.min(w2 / w1, h2 / h1);
};