-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
Remote Host status bar entry has no max width #107451
Comments
Oh I get it, you did not use web but desktop. I wonder if maybe @legomushroom or @srivatsn could comment why desktop is rendered different from web. I suspect a different label formatter maybe? |
@aeschli maybe when you detect the remote label to be very long you simply crop it in the middle adding a "..." or so? |
@bpasero Not sure what you mean. You suggest we should crop it before setting to the statas bar? I think that should better be in the status bar in CSS. |
Originally the thinking was that in web, the URL has the context but in desktop it's not there but since GH codespaces names are too long, I agree this doesn't look good. @lostintangent @2percentsilk thoughts? |
Yeah I'd agree that it's too long and a bit unsightly. Given the name of the codespace is also a part of the title bar, I don't think we need to have it fully duplicated at the bottom. Setting a max width and truncating the codespace name seems reasonable to me. For what exactly the max width would be I'd lean on @misolori :) |
I agree on keeping it shorter, just throwing a random number of 40 characters seems to look better. As @2percentsilk mentioned that the name is already repeated in other areas we don't need it as much here. It would also keep the width of the item ~275px. |
@aeschli the reason I suggested a manual solution without CSS is that as far as I know there is no CSS rule to crop a label in the middle. But if we think that the label can be cropped at the end, I think a CSS rule could work. Since each status item has a #status\.host {
max-width: 40px;
} Should work. Maybe @misolori could advise for a good rule that works together with I am not sure I would go as far as to apply this rule to every item, not sure about the consequences for extensions. Related issue is #84258 |
I think in order for the ellipsis to work in flexbox the remote text needs to be wrapped in its own tag. We currently only wrap the |
First of all, the remote extension should use a compact, human readable host name. |
Assigning to @bpasero to consider the change in the status bar as sketched by @misolori . |
I ended up pushing a change to trim the remote label to max 40 chars as suggested by Miguel: I don't to turn this into a general solution for all status bar entries because this is challenging, might not be the right solution for all status bar entries, and we have related issues to cover that in particular, namely #84258 |
The text was updated successfully, but these errors were encountered: