Fleet UI: Activity dashed lines to be variable length using grids (#12101)

This commit is contained in:
RachelElysia 2023-06-02 09:43:53 -04:00 committed by GitHub
parent de57747045
commit 695fa7d1b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 22 deletions

View file

@ -0,0 +1 @@
- Clean up dashed line styling on multiline activities

View file

@ -629,6 +629,7 @@ const ActivityItem = ({
</ReactTooltip>
</p>
</div>
<div className={`${baseClass}__dash`} />
</div>
);
};

View file

@ -1,34 +1,27 @@
.activity-item {
display: flex;
flex-direction: row;
align-items: center;
padding-bottom: $pad-large;
display: grid; // Grid system is used to create variable dashed line lengths
grid-template-columns: 16px 16px 1fr;
grid-template-rows: 32px max-content;
.avatar-wrapper {
position: relative;
grid-column-start: 1;
width: 32px;
height: 32px;
}
&:before {
content: "";
position: relative;
height: 36px !important;
z-index: 0;
top: 35px;
left: 17px;
border-left: 1px dashed $ui-fleet-black-10;
height: 100%;
}
&:last-child:before {
border-left: 0;
}
&__avatar-image {
z-index: 2;
&__dash {
border-right: 1px dashed $ui-fleet-black-10;
grid-column-start: 1;
grid-row-start: 2;
grid-row-end: 3;
}
&__details {
grid-column-start: 3;
grid-row-start: 1;
grid-row-end: 3;
padding-left: $pad-large;
padding-bottom: $pad-large;
.premium-icon-tip {
position: relative;
@ -59,4 +52,13 @@
&__show-query-icon {
margin-left: $pad-xsmall;
}
&:last-child {
.activity-item__dash {
border-right: none;
}
.activity-item__details {
padding-bottom: $pad-xxlarge;
}
}
}