mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 07:37:11 -05:00
Add hack for buttons position in IO mode
This commit is contained in:
parent
1ce564adf0
commit
0f062563a6
3 changed files with 4 additions and 10 deletions
|
|
@ -1381,10 +1381,6 @@ components and functionality for general note editing.
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.image-occlusion) {
|
|
||||||
position: fixed;
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(.image-occlusion .tab-buttons) {
|
:global(.image-occlusion .tab-buttons) {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -93,14 +93,12 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.editor-main {
|
.editor-main {
|
||||||
position: absolute;
|
position: relative;
|
||||||
top: 42px;
|
|
||||||
left: 36px;
|
|
||||||
bottom: 2px;
|
bottom: 2px;
|
||||||
right: 2px;
|
right: 2px;
|
||||||
border: 1px solid var(--border);
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
outline: none !important;
|
outline: none !important;
|
||||||
|
height: 90vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
:global([dir="rtl"]) .editor-main {
|
:global([dir="rtl"]) .editor-main {
|
||||||
|
|
|
||||||
|
|
@ -241,8 +241,8 @@ const fitCanvasVptScale = (canvas: fabric.Canvas) => {
|
||||||
const getScaleRatio = (boundingBox: Size) => {
|
const getScaleRatio = (boundingBox: Size) => {
|
||||||
const h1 = boundingBox.height!;
|
const h1 = boundingBox.height!;
|
||||||
const w1 = boundingBox.width!;
|
const w1 = boundingBox.width!;
|
||||||
const w2 = innerWidth - 42;
|
const w2 = innerWidth;
|
||||||
let h2 = window.innerHeight;
|
let h2 = window.innerHeight * 0.9;
|
||||||
h2 = isDesktop() ? h2 - 79 : h2 - 48;
|
h2 = isDesktop() ? h2 - 79 : h2 - 48;
|
||||||
return Math.min(w2 / w1, h2 / h1);
|
return Math.min(w2 / w1, h2 / h1);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue