Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add separator between columns #18492

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

faissaloux
Copy link
Contributor

@faissaloux faissaloux commented Jun 8, 2023

In this PR I have added columns separation which was a bit confusing especially on numbers data.

image

@codecov
Copy link

codecov bot commented Jun 8, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.06 ⚠️

Comparison is base (4758711) 56.43% compared to head (e9be10a) 56.37%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #18492      +/-   ##
============================================
- Coverage     56.43%   56.37%   -0.06%     
- Complexity    16074    16096      +22     
============================================
  Files           635      637       +2     
  Lines         63450    63537      +87     
============================================
+ Hits          35811    35822      +11     
- Misses        27639    27715      +76     
Flag Coverage Δ
dbase-extension 56.37% <ø> (-0.06%) ⬇️
recode-extension 56.34% <ø> (-0.06%) ⬇️
unit-8.1-ubuntu-latest 56.34% <ø> (-0.06%) ⬇️
unit-8.2-ubuntu-latest 56.34% <ø> (-0.06%) ⬇️
unit-nightly-ubuntu-latest 56.30% <ø> (-0.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 35 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@MauricioFauth
Copy link
Member

Is it confusing for RTL languages to have numbers aligned to the end of the cell?
I think the alignment for LTR should not be changed.

@faissaloux
Copy link
Contributor Author

@MauricioFauth The problem is there is no line that separates the columns so the content of a column appears like if it belongs to the next one. Since there is no vertical separator between columns I think when the content is well aligned with the header this makes it obvious which column it belongs. 🤔

@MauricioFauth
Copy link
Member

@MauricioFauth The problem is there is no line that separates the columns so the content of a column appears like if it belongs to the next one. Since there is no vertical separator between columns I think when the content is well aligned with the header this makes it obvious which column it belongs. 🤔

So the issue is that there's no clear separation between cells, and not the alignment itself.
Aligning text to the start and numbers to the end is the standard for spreadsheet software for a long time, at least for LTR languages.

@faissaloux
Copy link
Contributor Author

faissaloux commented Jun 26, 2023

So the issue is that there's no clear separation between cells, and not the alignment itself. Aligning text to the start and numbers to the end is the standard for spreadsheet software for a long time, at least for LTR languages.

Yeah sure! I don't have a problem with the numbers in the end of cell, but we need some sort of separation between columns so we don't have that confusion between columns.

Should I update it with columns separators, I think this will solve the issue. What do you think?

@MauricioFauth
Copy link
Member

Should I update it with columns separators, I think this will solve the issue. What do you think?

Maybe a bit more padding or add a subtle border for the pmahomme theme. But I think this should be done in the master branch, as this is more an enhancement than a bug fix.

@phpmyadmin-bot
Copy link
Contributor

This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked master branch you should also ask merging to master branch. See GitHub documentation for more details.

@faissaloux faissaloux changed the base branch from QA_5_2 to master July 4, 2023 13:32
@faissaloux faissaloux changed the title Fix columns data alignment on LTR and RTL Add separator between columns Jul 4, 2023
faissaloux and others added 9 commits July 4, 2023 15:37
Signed-off-by: faissaloux <fwahabali@gmail.com>
Fixes phpmyadmin#18471

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
@faissaloux
Copy link
Contributor Author

@MauricioFauth I have added separator between column and ready for your review.

Copy link
Member

@williamdes williamdes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there no bootstrap way of doing this?

@williamdes williamdes added enhancement A feature request for improving phpMyAdmin ui Issues relating to the user interface labels Jul 13, 2023
Signed-off-by: faissaloux <fwahabali@gmail.com>
tbody {
th,
td {
border-right: 1px solid #00000017;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change still needed on a bordered table?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@@ -292,7 +292,7 @@
{% endif %}

<div class="table-responsive-md">
<table class="table table-striped table-hover table-sm table_results data ajax w-auto" data-uniqueId="{{ unique_id }}">
<table class="table table-striped table-bordered table-hover table-sm table_results data ajax w-auto" data-uniqueId="{{ unique_id }}">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not convinced that this should be applied to all themes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@williamdes what do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty vote, I am not the themes guru here 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sooo! should I revert the last change concerning the table-bordered class 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature request for improving phpMyAdmin ui Issues relating to the user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants