Skip to content

Commit 7f3bbaf

Browse files
authored
fix(AnalyticalTable): align column popover based on hAlign (#7101)
Fixes #7080
1 parent da3c19e commit 7f3bbaf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/main/src/components/AnalyticalTable/ColumnHeader/ColumnHeaderModal.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,17 @@ export const ColumnHeaderModal = (props: ColumnHeaderModalProperties) => {
139139
const horizontalAlign = (() => {
140140
switch (column.hAlign) {
141141
case TextAlign.Begin:
142-
return isRtl ? PopoverHorizontalAlign.Right : PopoverHorizontalAlign.Left;
142+
return PopoverHorizontalAlign.Left;
143143
case TextAlign.End:
144-
return isRtl ? PopoverHorizontalAlign.Left : PopoverHorizontalAlign.Right;
144+
return PopoverHorizontalAlign.Right;
145145
case TextAlign.Left:
146-
return PopoverHorizontalAlign.Left;
146+
return isRtl ? PopoverHorizontalAlign.Right : PopoverHorizontalAlign.Left;
147147
case TextAlign.Right:
148-
return PopoverHorizontalAlign.Right;
148+
return isRtl ? PopoverHorizontalAlign.Left : PopoverHorizontalAlign.Right;
149149
case TextAlign.Center:
150150
return PopoverHorizontalAlign.Center;
151151
default:
152-
return isRtl ? PopoverHorizontalAlign.Right : PopoverHorizontalAlign.Left;
152+
return PopoverHorizontalAlign.Left;
153153
}
154154
})();
155155

0 commit comments

Comments
 (0)