mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-08 08:52:12 +00:00
fix(ui): Show the full SDK name in selects and shorten Windows home paths
A long detail (an installation path) was not cut, so it pushed the option label out (e.g. "Eclipse Adopti…", the Maven name hidden) and scrolled the popup sideways. The label now keeps its width and the detail is cut with an ellipsis (full path in the tooltip, detail text translated). Paths under C:/Users/<name> are shown as ~/…
This commit is contained in:
1 parent
6a8016b888
commit
49be259232
4 files changed
+18
-5
No files matched your search
@@ -72,13 +72,20 @@
|
||||
flex: none;
|
||||
color: var(--fg-muted);
|
||||
}
|
||||
/* The label keeps its width (up to most of the row); a long detail (a path) is cut instead. */
|
||||
.optionLabel {
|
||||
flex: 1;
|
||||
flex: 1 0 auto;
|
||||
max-width: 70%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.detail {
|
||||
flex: 0 1 auto;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.detail {
|
||||
white-space: nowrap;
|
||||
color: var(--fg-muted);
|
||||
}
|
||||
.disabled {
|
||||
|
||||
Reference in new issue
Block a user