Initial release

This commit is contained in:
2025-03-20 14:54:46 +02:00
parent 4686803b27
commit 3bc189c592
12 changed files with 342 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
.file-view.markup .full_width {
width: 100%;
display: block;
}
.file-view.markup.kicad_sch,
.file-view.markup.kicad_pcb,
.file-view.markup.libreoffice
{
background-color: rgba(127, 127, 127, 0.05);
}
.file-view.markup .page {
background-color: white;
padding: 1em;
}
.file-view.markup .page + .page {
margin-top: 1em;
}

View File

View File

@@ -0,0 +1,15 @@
<script src="https://unpkg.com/@panzoom/panzoom@4.6.0/dist/panzoom.min.js"></script>
<script>
try {
document.querySelectorAll('img.pan_zoom').forEach((img) => {
const panzoom = Panzoom(img, {
maxScale: 5
});
img.parentElement.addEventListener('wheel', evt => evt.preventDefault());
img.parentElement.addEventListener('wheel', panzoom.zoomWithWheel)
});
} catch (e) {
console.error('Error loading Panzoom:', e);
}
</script>

View File

@@ -0,0 +1 @@
<link rel="stylesheet" href="{{AppSubUrl}}/assets/css/renderers.css" />