mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-11 17:23:37 +01:00
fix: text editor selection, styling, and script coverage
Clears the previous document before opening a new one, keeps the selection when clicking the dock or rotating a box, refreshes the glass overlay so style changes preview every time, adds double-click word selection, and widens the Windows font stacks for Indic scripts. The dock now publishes its own height so the swatches lay out correctly on small screens.
This commit is contained in:
1 parent
356128c60d
commit
5392c1be76
4 files changed
+320
-74
No files matched your search
@@ -729,6 +729,15 @@ export function setupFormatDock(): void {
|
||||
updateOffset();
|
||||
}
|
||||
|
||||
const publishDockHeight = () => {
|
||||
app.style.setProperty(
|
||||
'--ecdock',
|
||||
`${Math.round(inspector.getBoundingClientRect().height)}px`
|
||||
);
|
||||
};
|
||||
new ResizeObserver(publishDockHeight).observe(inspector);
|
||||
publishDockHeight();
|
||||
|
||||
setupPagePill();
|
||||
refresh();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user