mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -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%;
|
||||
}
|
||||
|
||||
:global(.image-occlusion) {
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
:global(.image-occlusion .tab-buttons) {
|
||||
display: none !important;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue