Skip to content

Commit 7508ab0

Browse files
committed
Implementation of the missing align properties
1 parent 74f0f5b commit 7508ab0

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor.css

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ th ::deep .col-options-button {
5151
z-index: 1;
5252
}
5353

54-
.col-justify-end .col-options {
55-
left: unset;
56-
right: 0;
57-
}
58-
5954
.col-width-draghandle {
6055
position: absolute;
6156
top: 0;
@@ -76,10 +71,32 @@ td.col-justify-center {
7671
text-align: center;
7772
}
7873

74+
.col-justify-end .col-options {
75+
left: unset;
76+
right: 0;
77+
}
78+
7979
td.col-justify-end {
8080
text-align: right;
8181
}
8282

83+
.col-justify-start .col-options {
84+
left: 0;
85+
right: unset;
86+
}
87+
88+
td.col-justify-start {
89+
text-align: left;
90+
}
91+
92+
td.col-justify-right {
93+
text-align: right;
94+
}
95+
96+
td.col-justify-left {
97+
text-align: left;
98+
}
99+
83100
/* Unfortunately we can't use the :dir pseudoselector due to lack of browser support. Instead we have to rely on
84101
the developer setting <html dir="rtl"> to detect if we're in RTL mode. */
85102
html[dir=rtl] td.col-justify-end {
@@ -91,6 +108,10 @@ html[dir=rtl] .col-options {
91108
right: 0;
92109
}
93110

111+
html[dir=rtl] td.col-justify-start {
112+
text-align: right;
113+
}
114+
94115
html[dir=rtl] .col-justify-end .col-options {
95116
right: unset;
96117
left: 0;

0 commit comments

Comments
 (0)