redaction component, margin not stacking, other cleanup

This commit is contained in:
2026-08-22 12:18:39 -05:00
parent ce7ed0fd37
commit 5baf764d67
69 changed files with 440 additions and 77 deletions
+21 -2
View File
@@ -1,8 +1,27 @@
<script setup lang="ts">
import { watchMarginNotes } from '~/utils/stackMarginNotes';
onMounted(() => {
watchMarginNotes();
});
</script>
<template>
<span class="margin-note"><slot /></span>
<span class="margin-note-root">
<span class="margin-note-mark" aria-hidden="true"></span>
<span class="margin-note"><slot /></span>
</span>
</template>
<style scoped>
.margin-note-root {
display: inline;
}
.margin-note-mark {
display: inline;
}
.margin-note {
display: block;
margin: 0.4rem 0 1rem;
@@ -15,7 +34,7 @@
@media (min-width: 1200px) {
.margin-note {
position: absolute;
left: calc(100% + 2rem);
left: calc(100% + var(--note-gap));
width: var(--note-width);
margin: 0;
font-size: 0.8rem;