mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-31 23:11:28 +01:00
fix icon position, plus sign, etc.
This commit is contained in:
parent
98a55b2290
commit
a3296fc530
@ -511,9 +511,9 @@ const ChangeConnectionBlockModal = React.memo(
|
||||
// for instance, when reconnecting
|
||||
const newConnectionSuggestion: SuggestionConnectionItem = {
|
||||
status: "connected",
|
||||
icon: "arrow-right-arrow-left",
|
||||
icon: "plus",
|
||||
iconColor: "var(--conn-icon-color)",
|
||||
label: `(+) ${connSelected}`,
|
||||
label: `${connSelected} (New Connection)`,
|
||||
value: "",
|
||||
onSelect: (_: string) => {
|
||||
changeConnection(connSelected);
|
||||
|
@ -91,13 +91,19 @@
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.name {
|
||||
.typeahead-item-name {
|
||||
.ellipsis();
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
font-size: 11px;
|
||||
font-weight: 400;
|
||||
line-height: 14px;
|
||||
|
||||
i {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ const Suggestions = forwardRef<HTMLDivElement, SuggestionsProps>(({ suggestions,
|
||||
}}
|
||||
className="suggestion-item"
|
||||
>
|
||||
<div className="name">
|
||||
<div className="typeahead-item-name">
|
||||
{item.icon && renderIcon(item.icon, "iconColor" in item && item.iconColor ? item.iconColor : "inherit")}
|
||||
{item.label}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user