mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1601] [MERGED] Fix three global shell/UI bugs (cursor, slider sync, toast position) #5138
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5138
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1601
Author: @Romuromylus
Created: 5/29/2026
Status: ✅ Merged
Merged: 5/29/2026
Merged by: @Romuromylus
Base:
refactor← Head:fix/shell-global-ui📝 Commits (6)
fc4943eCascade the not-allowed cursor to disabled button children04f4639Re-sync range slider fill on programmatic value changes9d27c1cMove the global toast region off the chat send button24028c7Make the range slider value-setter patch idempotent and safe to disposed7635a5Merge branch 'refactor' into fix/shell-global-ui620b4b1Merge branch 'refactor' into fix/shell-global-ui📊 Changes
5 files changed (+162 additions, -3 deletions)
View changed files
📝
src/app/App.tsx(+1 -1)➕
src/app/startup/range-slider-sync.test.ts(+102 -0)📝
src/app/startup/range-slider-sync.ts(+51 -0)📝
src/styles/globals.css(+4 -1)📝
src/styles/themes/sillytavern.css(+4 -1)📄 Description
Why this change
Three small global/shell UI bugs in the refactor, grouped because each lives in the app shell or global styles rather than a single feature.
What changed
not-allowedcursor vanishes over disabled-button icons: the pink cursor is set by element-level rules (a, button, input[type="color"]) and[class*="cursor-pointer"], which give the disabled button's child<svg>/<span>their own cursor and defeat the inheritednot-allowed. Extended the.cursor-not-allowedrules (and the sillytavern theme mirror) to descendants so the not-allowed cursor cascades to children.type=rangeinput re-syncs its progress. The patch is idempotent (won't double-wrap across HMR / StrictMode / concurrent remount), captures the native descriptor once at module load, and its disposer only restores when our setter is still the active one (so it won't clobber a later third-party value-setter patch).Verification
pnpm check:architectureandpnpm check:frontend(tsc -b) pass on this branch.range-slider-sync- a programmatic.valueassignment re-syncs--range-progress, the disposer restores the native setter, plus regression cases for overlapping installs (no permanently-wrapped prototype) and a later third-party patch (not clobbered on dispose). RED on baseline, GREEN with the fix.pnpm dev: #1560 - a.cursor-not-allowedelement's child icon computescursor: not-allowed(the pink cursor on baseline); #1552 - the global toaster region reportsdata-y-position="top"/data-x-position="center"(bottom/righton baseline). Both confirmed RED then GREEN. The browser repro specs are kept local and are not part of this diff.Linked issues
Closes #1560
Closes #1558
Closes #1552
Summary by CodeRabbit
Bug Fixes
New Features
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.