Skip to content

Enable model picker label to show ellipsis instead of overflowing #232640

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

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

roblourens
Copy link
Member

Fix #231369

@roblourens roblourens self-assigned this Oct 30, 2024
@roblourens roblourens requested a review from Copilot October 30, 2024 20:49
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 2 changed files in this pull request and generated no suggestions.

Files not reviewed (1)
  • src/vs/workbench/contrib/chat/browser/media/chat.css: Language not supported

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more

@roblourens roblourens enabled auto-merge (squash) October 30, 2024 21:08
Copy link
Collaborator

@justschen justschen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, I think small nit is the structure (in this css file, i don't see a lot of nested css), but i don't think it really matters

.interactive-session .chat-input-toolbars > .chat-execute-toolbar,
.interactive-session .chat-input-toolbars > .chat-execute-toolbar .chat-modelPicker-item {
	min-width: 0;
}

.interactive-session .chat-input-toolbars > .chat-execute-toolbar .chat-modelPicker-item .chat-model-label {
        min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.interactive-session .chat-input-toolbars > .chat-execute-toolbar .chat-modelPicker-item .codicon {
	flex-shrink: 0;
}

@roblourens roblourens merged commit 072f7c3 into release/1.95 Oct 30, 2024
8 checks passed
@roblourens roblourens deleted the roblou/fluttering-dormouse branch October 30, 2024 21:21
@roblourens
Copy link
Member Author

Nested selectors are very new, but they are good and I think we can start to use them in more places.

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants