GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): banner titles truncate and stay announced · pingdotgg/t3code@365011e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/web/src/components/chat
    • BackgroundWorkBanner.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/web/src/components/chat/BackgroundWorkBanner.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/chat/BackgroundWorkBanner.tsx
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ function Rows({
268268
) : (
269269
<button
270270
type="button"
271-
aria-label={`Open subagent ${row.label}`}
272271
className={cn(
273272
rowClassName,
274273
"cursor-pointer hover:bg-accent focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring",
@@ -311,7 +310,7 @@ export function BackgroundWorkBanner(props: {
311310
<HeaderIcon rows={presentation.rows} />
312311
</ComposerBanner.Icon>
313312
<ComposerBanner.Content className="whitespace-nowrap">
314-
<span className="min-w-0 shrink-0 truncate font-medium leading-7 sm:leading-6">
313+
<span className="min-w-0 truncate font-medium leading-7 sm:leading-6">
315314
{single?.kind === "command" ? (
316315
<>
317316
{presentation.waiting ? "Waiting on " : "Running "}
@@ -321,7 +320,7 @@ export function BackgroundWorkBanner(props: {
321320
presentation.title
322321
)}
323322
</span>
324-
{description && !expanded ? (
323+
{description && (single || !expanded) ? (
325324
<span className={cn("w-0 min-w-0 grow truncate @max-[400px]:sr-only", mutedText)}>
326325
{description}
327326
</span>
@@ -343,6 +342,9 @@ export function BackgroundWorkBanner(props: {
343342
);
344343
return (
345344
<div data-background-work-banner="true">
345+
<span role="status" className="sr-only">
346+
{presentation.title}
347+
</span>
346348
<div className="flex items-center">
347349
{single ? (
348350
<ComposerBanner.Row className="flex-1">{header}</ComposerBanner.Row>

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.