Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

fix: left aligned sortable table headers #1544

Merged
merged 1 commit into from
Nov 19, 2019
Merged

fix: left aligned sortable table headers #1544

merged 1 commit into from
Nov 19, 2019

Conversation

alessiodf
Copy link
Contributor

Summary

#1494 broke table formatting for left-aligned headers that used the text-left class if the column contained numerical data and that column was being used to sort the data in the table. This is because that PR forces sorted headers to be flexboxes with justify-content: flex-end (since vgt-right-align is automatically applied if the column contains numerical data).

This fixes it by overriding this with justify-content: flex-start if the header also has the text-left class. This approach was chosen as it mirrors the existing .vgt-table th.vgt-right-align.text-center CSS rule for centre-aligned headers.

Although the wallet itself doesn't seem to use left-aligned sortable headers for numerical data, some plugins, including my own, will need this as plugins can't define their own CSS classes and vue-good-table does not permit us to specify our own styles, only classes.

Checklist

  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

@ghost
Copy link

ghost commented Nov 16, 2019

Thanks for submitting this pull request! A maintainer will review this in the next few days and explicitly select labels so you know what's going on.

If no reviewer appears after a week, a reminder will be sent out.

@ghost ghost added Complexity: Low Less than 64 lines changed. Type: Bugfix The pull request fixes an incorrect functionality or behaviour. labels Nov 16, 2019
@ghost
Copy link

ghost commented Nov 19, 2019

A member has approved this PR. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait.

Thank you for your contribution!

@ghost ghost added the Status: Member Approved The pull request has been approved by a member. label Nov 19, 2019
@alexbarnsley alexbarnsley added the Bounty: Tier 4 Awarded for small features, refactorings, improvements. This is valued at 20 USD. label Nov 19, 2019
@alexbarnsley alexbarnsley merged commit f098cd7 into ArkEcosystem:develop Nov 19, 2019
@ghost
Copy link

ghost commented Nov 19, 2019

Your pull request has been merged and marked as tier 4. It will earn you $20 USD.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bounty: Tier 4 Awarded for small features, refactorings, improvements. This is valued at 20 USD. Complexity: Low Less than 64 lines changed. Status: Member Approved The pull request has been approved by a member. Type: Bugfix The pull request fixes an incorrect functionality or behaviour.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants