[PR #8639] [MERGED] fix(layout): sidebar edges show the resize cursor with the custom cursor on (#8621) #8717

Closed
opened 2026-11-07 17:39:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8639
Author: @SpicyMarinara
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/resize-cursor-8621


📝 Commits (2)

  • 054d842 fix(layout): sidebar edges show the resize cursor with the custom cursor on
  • e2c3b00 fix(layout): a sidebar drag keeps its cursor across other resize edges

📊 Changes

3 files changed (+149 additions, -51 deletions)

View changed files

➕ e2e/sidebar-resize-cursor.e2e.ts (+94 -0)
📝 packages/client/src/components/layout/AppShell.tsx (+6 -6)
📝 packages/client/src/styles/globals.css (+49 -45)

📄 Description

Closes #8621

Why this change

Users can resize the left and right sidebars by dragging their edges, but the cursor never changes on hover, so the feature is hard to discover — the reporter only found it by accident.

The handles already had cursor-col-resize. The cause is Marinara's custom cursor, which is on by default: it forces its accent-coloured arrow onto every element with cursor: var(--marinara-custom-cursor) !important, and the resize classes were folded into that override (globals.css §6). So no resize edge anywhere in the app showed a resize cursor, not just the sidebars.

What changed

  • Resize affordances keep the system resize cursors with the custom cursor on. The resize classes come out of the custom-cursor override and get their own native values (col-resize, ew-resize, nwse-resize, …), each class keeping exactly the cursor it names. These rules carry real specificity, so none of the :where() custom-cursor rules can take them back. Everything else keeps the custom arrow as designed.
  • A drag holds the resize cursor across the page. The pointer leaves the 4px handle at once, and the inline document.body.style.cursor = "col-resize" the drag used was itself overridden by the same !important rule (and, with the custom cursor off, by any child that sets its own cursor). The two sidebar drags now set data-marinara-resizing="col" on the root, and one rule shows col-resize everywhere until the drag ends on release or window blur.

This also restores the resize cursor on other resize edges that use these classes (floating windows, the Mari companion panel), since they hit the same override.

Validation

  • e2e/sidebar-resize-cursor.e2e.ts (desktop only; the handles are hidden below md): both handles show col-resize; a point far from either handle shows col-resize during a drag and its usual cursor after release; with the custom cursor on and off. 2/2 pass.
  • The same spec on the code before this change fails: the left handle reported url("data:image/svg+xml,…") 3 3, auto — the accent arrow — instead of col-resize, and the drag set no page-wide cursor.
  • tsc --noEmit for the client and check:e2e-types pass; lint has 0 errors (10 existing warnings, none in these files); Prettier clean.

Test plan

  • Hover the right edge of the left sidebar and the left edge of the right sidebar; confirm the cursor becomes the horizontal resize cursor.
  • Drag either edge and move the pointer well away from it; confirm the resize cursor stays until release, then returns to the custom arrow.
  • Turn the custom cursor off in Settings → Appearance and repeat both checks.
  • Confirm a floating window's resize corner and the Mari companion's resize edge also show resize cursors now.
  • Confirm ordinary buttons, links and text still show the custom arrow when it is on.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8639 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/resize-cursor-8621` --- ### 📝 Commits (2) - [`054d842`](https://github.com/Pasta-Devs/Marinara-Engine/commit/054d8427b72ff104a11386f5cc4f52ef70388ccc) fix(layout): sidebar edges show the resize cursor with the custom cursor on - [`e2c3b00`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e2c3b00a66b922c6e90f5db4fde3a5d9fd422ecb) fix(layout): a sidebar drag keeps its cursor across other resize edges ### 📊 Changes **3 files changed** (+149 additions, -51 deletions) <details> <summary>View changed files</summary> ➕ `e2e/sidebar-resize-cursor.e2e.ts` (+94 -0) 📝 `packages/client/src/components/layout/AppShell.tsx` (+6 -6) 📝 `packages/client/src/styles/globals.css` (+49 -45) </details> ### 📄 Description Closes #8621 ## Why this change Users can resize the left and right sidebars by dragging their edges, but the cursor never changes on hover, so the feature is hard to discover — the reporter only found it by accident. The handles already had `cursor-col-resize`. The cause is Marinara's custom cursor, which is **on by default**: it forces its accent-coloured arrow onto every element with `cursor: var(--marinara-custom-cursor) !important`, and the resize classes were folded into that override (`globals.css` §6). So no resize edge anywhere in the app showed a resize cursor, not just the sidebars. ## What changed - **Resize affordances keep the system resize cursors** with the custom cursor on. The resize classes come out of the custom-cursor override and get their own native values (`col-resize`, `ew-resize`, `nwse-resize`, …), each class keeping exactly the cursor it names. These rules carry real specificity, so none of the `:where()` custom-cursor rules can take them back. Everything else keeps the custom arrow as designed. - **A drag holds the resize cursor across the page.** The pointer leaves the 4px handle at once, and the inline `document.body.style.cursor = "col-resize"` the drag used was itself overridden by the same `!important` rule (and, with the custom cursor off, by any child that sets its own cursor). The two sidebar drags now set `data-marinara-resizing="col"` on the root, and one rule shows `col-resize` everywhere until the drag ends on release or window blur. This also restores the resize cursor on other resize edges that use these classes (floating windows, the Mari companion panel), since they hit the same override. ## Validation - `e2e/sidebar-resize-cursor.e2e.ts` (desktop only; the handles are hidden below `md`): both handles show `col-resize`; a point far from either handle shows `col-resize` during a drag and its usual cursor after release; with the custom cursor on and off. **2/2 pass.** - The same spec on the code before this change **fails**: the left handle reported `url("data:image/svg+xml,…") 3 3, auto` — the accent arrow — instead of `col-resize`, and the drag set no page-wide cursor. - `tsc --noEmit` for the client and `check:e2e-types` pass; `lint` has 0 errors (10 existing warnings, none in these files); Prettier clean. ## Test plan - [ ] Hover the right edge of the left sidebar and the left edge of the right sidebar; confirm the cursor becomes the horizontal resize cursor. - [ ] Drag either edge and move the pointer well away from it; confirm the resize cursor stays until release, then returns to the custom arrow. - [ ] Turn the custom cursor off in Settings → Appearance and repeat both checks. - [ ] Confirm a floating window's resize corner and the Mari companion's resize edge also show resize cursors now. - [ ] Confirm ordinary buttons, links and text still show the custom arrow when it is on. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:39:12 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8717
No description provided.