fix(stage-ui): line up the Notifications header in the drawer surface (#3549)

## Summary

On the drawer surface, the header of the Notifications panel had no side
padding. The title did not line up with the text of the messages. The
mark-all-read button pads its icon by 6px, so the space at the right of
the header was wider than the space at the left.

The drawer header now pads as the floating header already does: `pl-4
pr-2.5`. The title lines up with the message text, and the icon keeps
the same distance from the edge as the title.

## Context

- Request: make the left and right spacing of the Notifications header
even in the app menu of the desktop app. Keep the change small, without
a new surface or prop.
- Scenario: in stage-tamagotchi, the Notifications submenu of the app
menu showed the title close to the left edge and a wider gap at the
right of the mark-all-read button.
- Scope: one class list in `inbox-panel.vue`. The app menu and the
bottom drawer of the mobile menu share the drawer surface, so both
change. The floating surface does not change.

## Visual changes

| Before | After |
|---|---|
|
![](https://github.com/user-attachments/assets/0e3f1253-fbed-46a7-8ffd-a43ceb974208)
|
![](https://github.com/user-attachments/assets/be5235b6-e2a7-49fb-a964-0a1711e8b1e5)
|
| Inbox Panel story / Mobile · menu entry, 390x780, light | Inbox Panel
story / Mobile · menu entry, 390x780, light |

The app menu of the desktop app has no capture. It shows Notifications
only for a signed-in account, and the capture profile has none. A
signed-in local development build was checked manually.

## Verification

- The captures come from the Inbox Panel story on the merge base and on
this branch, with the same steps: open the menu, then wait for the
drawer, the fonts, and the styles.
- No tests ran locally. CI runs the lint, typecheck, and tests.
`inbox-panel.browser.test.ts` and `inbox-drawer.browser.test.ts` do not
check the header position.

## Agent

- Harness: Claude Code
- Model: claude-opus-5-5

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Neko <neko@ayaka.moe>
This commit is contained in:
蓝莓🫐 2026-11-20 23:14:04 +07:00 • committed by GitHub
parent fece6eed3f
commit 32ffe96dce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +59,11 @@ useIntersectionObserver(listEnd, ([entry]) => {
<template>
<!-- Announcements have their own surface. This panel holds only the user's private messages. -->
<section :class="['flex flex-col text-neutral-900 dark:text-neutral-100']" :aria-label="t('stage.notifications.title')">
<header :class="['flex items-center gap-2', surface === 'floating' ? 'pl-5 pr-3 pt-3' : 'pt-1']">
<!--
The button pads its icon, so the header has a smaller right padding. Then the icon keeps the distance of the
title from the edge. In a drawer, the title lines up with the text of the messages.
-->
<header :class="['flex items-center gap-2', surface === 'floating' ? 'pl-5 pr-3 pt-3' : 'pl-4 pr-2.5 pt-1']">
<slot name="leading" />
<h2 :class="['flex flex-1 items-center gap-2 text-base font-semibold']">
{{ t('stage.notifications.title') }}