-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: show task display name in task topbar #20957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -23,7 +23,7 @@ type TaskTopbarProps = { task: Task; workspace: Workspace }; | |||||
|
|
||||||
| export const TaskTopbar: FC<TaskTopbarProps> = ({ task, workspace }) => { | ||||||
| return ( | ||||||
| <header className="flex flex-shrink-0 items-center p-3 border-solid border-border border-0 border-b"> | ||||||
| <header className="flex flex-shrink-0 items-center gap-2 p-3 border-solid border-border border-0 border-b"> | ||||||
| <TooltipProvider> | ||||||
| <Tooltip> | ||||||
| <TooltipTrigger asChild> | ||||||
|
|
@@ -38,7 +38,9 @@ export const TaskTopbar: FC<TaskTopbarProps> = ({ task, workspace }) => { | |||||
| </Tooltip> | ||||||
| </TooltipProvider> | ||||||
|
|
||||||
| <h1 className="m-0 pl-2 text-base font-medium truncate">{task.name}</h1> | ||||||
| <h1 className="m-0 pl-2 text-base font-medium max-w-[520px] truncate"> | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
We talked about this during our chat, unsure if we do this pattern elsewhere but it might look less magic to someone reading in the future
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As discussed on Slack, it looks like this doesn’t exactly meet the 64-characters, which leads to the page width expanding, which isn’t ideal 🙁 |
||||||
| {task.display_name} | ||||||
| </h1> | ||||||
|
|
||||||
| {task.current_state?.uri && ( | ||||||
| <div className="flex items-center gap-2 flex-wrap ml-4"> | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just defaulting to the same value as in the Tasks list view. In the backend, we also always guarantee that the display name is only 64 characters, which should not reach this maximum.