mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-23 04:37:09 +00:00
fix(web): remove duplicate queued composer gap (#1505)
This commit is contained in:
@@ -171,6 +171,19 @@ afterEach(() => {
|
||||
vi.unstubAllGlobals()
|
||||
})
|
||||
|
||||
describe('QueuedMessagesBar layout', () => {
|
||||
it('keeps the queue footer flush with the composer area', () => {
|
||||
renderQueuedMessage()
|
||||
|
||||
const bar = screen.getByRole('status')
|
||||
const content = bar.firstElementChild
|
||||
|
||||
expect(bar).not.toHaveClass('mb-1')
|
||||
expect(content).toHaveClass('pt-2', 'pb-0')
|
||||
expect(content).not.toHaveClass('py-2')
|
||||
})
|
||||
})
|
||||
|
||||
describe('QueuedMessagesBar edit restore', () => {
|
||||
it('keeps a newly typed draft and its schedule when the deferred cancel succeeds', async () => {
|
||||
const scheduledAt = Date.now() + 60_000
|
||||
|
||||
@@ -303,9 +303,9 @@ export function QueuedMessagesBar({
|
||||
<div
|
||||
role="status"
|
||||
aria-label={`${queued.length} queued message${queued.length === 1 ? '' : 's'} pending invocation`}
|
||||
className="mx-auto w-full max-w-content mb-1"
|
||||
className="mx-auto w-full max-w-content"
|
||||
>
|
||||
<div className="px-3 py-2 text-sm text-[var(--app-fg-muted)]">
|
||||
<div className="px-3 pb-0 pt-2 text-sm text-[var(--app-fg-muted)]">
|
||||
<div className="flex items-center gap-1.5 mb-1.5 text-xs font-medium text-[var(--app-hint)]">
|
||||
<ClockIcon />
|
||||
<span>Queued</span>
|
||||
|
||||
Reference in New Issue
Block a user