material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Currency align

Open X-3mal opened this issue 7 years ago • 6 comments

Describe the bug Column {...type: 'currency'} Header cell has left align Left, cells have align Right.

Expected behavior Both header and cell should have the same align

Screenshots Before fix: https://clip2net.com/s/44I0rXq After fix: https://clip2net.com/s/44I0Gme

Solution m-table-header.js :96 align: ['numeric'].indexOf(columnDef.type) !== -1 ? "right" : "left", Add 'currency' align: ['numeric', 'currency'].indexOf(columnDef.type) !== -1 ? "right" : "left",

X-3mal avatar Nov 21 '19 12:11 X-3mal

+1

rustycoslett avatar Nov 29 '19 14:11 rustycoslett

I'm having the same issue!

lfsando avatar Dec 27 '19 20:12 lfsando

+1

HighlApp avatar Feb 20 '20 10:02 HighlApp

Hopefully I can get around to making a PR soon, but I have been doing this.

columns={[{cellStyle: { textAlign: 'left' }, ...}]}

Motoxpro avatar Mar 30 '20 01:03 Motoxpro

Furthermore the sort icon appears on the right as opposed to the left. These should be reversed when the alignment is changed to the right.

pajohns avatar Apr 22 '20 01:04 pajohns

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

stale[bot] avatar Jul 21 '20 02:07 stale[bot]