Make labels on the host detail page render horizontally (#43933)
**Related issue:** Resolves #43914 Make labels on the host detail page render horizontally.
This commit is contained in:
@@ -28,11 +28,11 @@ const Labels = ({
|
||||
.filter((label: ILabel) => label.label_type !== "builtin")
|
||||
.map((label: ILabel) => {
|
||||
return (
|
||||
<li className="list__item" key={label.id}>
|
||||
<li className={`${baseClass}__list-item`} key={label.id}>
|
||||
<Button
|
||||
onClick={() => onLabelClick(label)}
|
||||
variant="pill"
|
||||
className="list__button"
|
||||
className={`${baseClass}__list-button`}
|
||||
>
|
||||
<TooltipTruncatedText value={label.name} />
|
||||
</Button>
|
||||
@@ -52,7 +52,7 @@ const Labels = ({
|
||||
No labels are associated with this host.
|
||||
</p>
|
||||
) : (
|
||||
<ul className="list">{labelItems}</ul>
|
||||
<ul className={`${baseClass}__list`}>{labelItems}</ul>
|
||||
)}
|
||||
</Card>
|
||||
);
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
.host-labels-card {
|
||||
@include vertical-card-layout;
|
||||
|
||||
.list {
|
||||
&__list {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
gap: $pad-small;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.list__item {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
&__list-item {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.button,
|
||||
|
||||
Reference in New Issue
Block a user