Skip to content

All your computers and your phone/iPhone, working as one desk. Screens, apps, files, clipboard, calls, texts, notifications, mouse and keyboard, shared between Mac, Windows, Linux , Android, Web and ios / ipados . Free and open source. No account, no cloud, and no shared network needed.

Photos viewer over the whole window again (#413)

Inuka Asith78b5585c75a5
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a2bac60c..fe373ade 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,13 @@ switches on only when both sides have it ([how that's decided](docs/capabilities
Numbers like (#143) are [issues and pull requests](https://github.com/InukaAsith/TwinDesk/issues).
Everyone who sent code, reported a problem or tested is thanked under their version.
+## Unreleased
+
+### Fixed
+- **Photos: the viewer opened below the grid instead of over the window** (#413): since 3.3.1 it
+ sat inside the page's animated part, which held it to the scrolled grid, so a photo showed half
+ off screen or not at all. Mac, Windows, Linux and Multi-device.
+
## 3.3.1
### Fixed
diff --git a/shared/ui-media.js b/shared/ui-media.js
index b1954fab..6681a64e 100644
--- a/shared/ui-media.js
+++ b/shared/ui-media.js
@@ -145,8 +145,11 @@ UI.tab({
el('div', { class: 'hub-viewer-stage' }, [prev, bigImg, next]),
el('div', { class: 'hub-viewer-bar' }, [el('div', { class: 'hub-grow' }, [bigName, bigSub]), bigRemove, bigCopy, bigOpen, bigOpenWith, bigShare, bigSave, closeBtn]),
]);
- const mainView = el('div', { class: 'gear-main' }, [top.el, wrap, viewer]);
- body.append(mainView, backup.el);
+ const mainView = el('div', { class: 'gear-main' }, [top.el, wrap]);
+ // The viewer beside .gear-main, not in it (#413): the page's entry animation (rise, fill both) stays
+ // on each child of .page-body, and Chromium then holds a position: fixed descendant inside that
+ // child, so the viewer covered only the scrolled grid with the photo below it, not the window.
+ body.append(mainView, backup.el, viewer);
// ---- Photo backup ----
function backupView() {