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