Add viewer controller for mermaid (zoom, drag)#36557
Add viewer controller for mermaid (zoom, drag)#36557silverwind merged 38 commits intogo-gitea:mainfrom
Conversation
da7e750 to
015c250
Compare
015c250 to
5e15e69
Compare
|
yes these buttons definitely need styling, same style as copy button. and gap between. |
…hover - Style iframe view-controller buttons to match `.ui.button` by reading parent page CSS variables and injecting them into the iframe CSS - Show buttons only on hover with fade transition, always visible on mobile via `@media (hover: none)` - Add `--transition-fade` CSS variable and use it for both code-copy and mermaid view-controller buttons - Convert code-copy from animation to transition for consistency Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: silverwind <me@silverwind.io>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add hover-to-show for mermaid code-copy button and always show all code-copy buttons on touch devices via @media (hover: none). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
One related fix that also affects the copy button: Using |
|
One last topic: I'd like to remove the new css variable in favor of re-using the existing |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
ok think I'm done here now, changes are minimal. |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Feel free to merge if it looks good to you |
|
One more thing I noticed: when the copy button is hovered, the view-controller hides. It seems tricky to solve, likely requires the view-controller to be moved outside the iframe. |
Merging now, this is not worth the effort it would take imho. |
Fix markup code block layout #36578 |
* origin/main: (34 commits) Fine tune diff highlighting (go-gitea#36592) Add code editor setting dropdowns (go-gitea#36534) Update to go 1.26.0 and golangci-lint 2.9.0 (go-gitea#36588) Improve diff highlighting (go-gitea#36583) Fix markup code block layout (go-gitea#36578) Remove striped tables in UI (go-gitea#36509) Fix vertical alignment of `.commit-sign-badge` children (go-gitea#36570) Fix mirror sync parser and fix mirror messages (go-gitea#36504) Update JS and PY deps (go-gitea#36576) Add viewer controller for mermaid (zoom, drag) (go-gitea#36557) Misc typescript tweaks (go-gitea#36523) Use full-file highlighting for diff sections (go-gitea#36561) fix(diff): reprocess htmx content after loading more files (go-gitea#36568) [skip ci] Updated translations via Crowdin Add wrap to runner label list (go-gitea#36565) fix: add dnf5 command for Fedora in RPM package instructions (go-gitea#36527) Enable pagination on GiteaDownloader.getIssueReactions() (go-gitea#36549) Refactor merge conan and container auth preserve actions taskID (go-gitea#36560) Fix assignee sidebar links and empty placeholder after go-gitea#32465 refactor (go-gitea#36559) Fix various version parsing problems (go-gitea#36553) ...
* origin/main: (152 commits) Fine tune diff highlighting (go-gitea#36592) Add code editor setting dropdowns (go-gitea#36534) Update to go 1.26.0 and golangci-lint 2.9.0 (go-gitea#36588) Improve diff highlighting (go-gitea#36583) Fix markup code block layout (go-gitea#36578) Remove striped tables in UI (go-gitea#36509) Fix vertical alignment of `.commit-sign-badge` children (go-gitea#36570) Fix mirror sync parser and fix mirror messages (go-gitea#36504) Update JS and PY deps (go-gitea#36576) Add viewer controller for mermaid (zoom, drag) (go-gitea#36557) Misc typescript tweaks (go-gitea#36523) Use full-file highlighting for diff sections (go-gitea#36561) fix(diff): reprocess htmx content after loading more files (go-gitea#36568) [skip ci] Updated translations via Crowdin Add wrap to runner label list (go-gitea#36565) fix: add dnf5 command for Fedora in RPM package instructions (go-gitea#36527) Enable pagination on GiteaDownloader.getIssueReactions() (go-gitea#36549) Refactor merge conan and container auth preserve actions taskID (go-gitea#36560) Fix assignee sidebar links and empty placeholder after go-gitea#32465 refactor (go-gitea#36559) Fix various version parsing problems (go-gitea#36553) ...
Fix go-gitea#25803 Now the rendered mermaid chart can be dragged or zoomed. --------- Signed-off-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>







Fix #25803
Now the rendered mermaid chart can be dragged or zoomed.