Skip to content

Commit e409c54

Browse files
committed
fix(Pinning): Add left border for right container
There was a border on the left container but not on the right container; no visual separation.
1 parent 783fefb commit e409c54

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

src/features/pinning/less/pinning.less

+33
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,39 @@
3535
width: @gridBorderWidth;
3636
background-color: darken(@headerVerticalBarColor, 15%);
3737
}
38+
39+
40+
&.ui-grid-pinned-container-right .ui-grid-header-cell:first-child {
41+
box-sizing: border-box;
42+
border-left: @gridBorderWidth solid;
43+
border-width: @gridBorderWidth;
44+
border-color: darken(@headerVerticalBarColor, 15%);
45+
}
46+
47+
&.ui-grid-pinned-container-right .ui-grid-cell:first-child {
48+
box-sizing: border-box;
49+
border-left: @gridBorderWidth solid;
50+
border-width: @gridBorderWidth;
51+
border-color: darken(@verticalBarColor, 15%);
52+
}
53+
54+
&.ui-grid-pinned-container-right .ui-grid-header-cell:not(:first-child) .ui-grid-vertical-bar, .ui-grid-cell:not(:first-child) .ui-grid-vertical-bar {
55+
width: @gridBorderWidth;
56+
}
57+
58+
&.ui-grid-pinned-container-right .ui-grid-header-cell:not(:first-child) .ui-grid-vertical-bar {
59+
background-color: @headerVerticalBarColor;
60+
}
61+
62+
&.ui-grid-pinned-container-right .ui-grid-cell:not(:last-child) .ui-grid-vertical-bar {
63+
background-color: darken(@verticalBarColor, 15%);
64+
}
65+
66+
&.ui-grid-pinned-container-first .ui-grid-header-cell:first-child .ui-grid-vertical-bar {
67+
left: -1px; // TODO(c0bra): Should this be grid width? Test column resizing with custom grid border width
68+
width: @gridBorderWidth;
69+
background-color: darken(@headerVerticalBarColor, 15%);
70+
}
3871
}
3972

4073
.ui-grid-render-container-body {

0 commit comments

Comments
 (0)