mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Fleet UI: Activity dashed lines to be variable length using grids (#12101)
This commit is contained in:
parent
de57747045
commit
695fa7d1b0
3 changed files with 26 additions and 22 deletions
1
changes/issue-11773-activity-styling-fix
Normal file
1
changes/issue-11773-activity-styling-fix
Normal file
|
|
@ -0,0 +1 @@
|
|||
- Clean up dashed line styling on multiline activities
|
||||
|
|
@ -629,6 +629,7 @@ const ActivityItem = ({
|
|||
</ReactTooltip>
|
||||
</p>
|
||||
</div>
|
||||
<div className={`${baseClass}__dash`} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue