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

Better display long Dataset names in the Table view #603

Open
sseppi opened this issue Sep 24, 2024 · 7 comments
Open

Better display long Dataset names in the Table view #603

sseppi opened this issue Sep 24, 2024 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@sseppi
Copy link
Contributor

sseppi commented Sep 24, 2024

With the introduction of the new header of the Table view, we have a display problem of Dataset with long names (more than one line).

As you can see from the screenshot below, the long names exceed the borders of the drop-down component.

Screenshot from 2024-09-24 15-44-36

We should think a better solution for long dataset names.

@sseppi sseppi added the enhancement New feature or request label Sep 24, 2024
@sseppi sseppi added this to the Data Browser 2.6 - Beta milestone Sep 24, 2024
@sseppi sseppi assigned gappc, Mazzolintis and pkritzinger and unassigned gappc Sep 24, 2024
@sseppi
Copy link
Contributor Author

sseppi commented Sep 24, 2024

@pkritzinger what about cutting the name and putting the dots at the end?

@pkritzinger
Copy link
Collaborator

@sseppi yes, truncating the name after having defined the max-length would be a great solution (do you know how long the dataset name can be?). Maybe on hover we can show the full dataset name by using the tooltip provided by the browser, s. example below.
image

@sseppi
Copy link
Contributor Author

sseppi commented Sep 25, 2024

@pkritzinger we didn't define any limit for the dataset's name length. For now the "Echarging station accessibility" is the longest, but if future we could have even longer names.

I like the truncation of the name with the hover effect you proposed.

@gappc
Copy link
Collaborator

gappc commented Sep 25, 2024

@sseppi @pkritzinger I recommend to let the browser do the truncation via css. Defining a max number of characters is not always helpful with non-monospaced fonts, e.g.

iiiiiiiiii => 10 chars
oooooooooo => 10 chars

@sseppi
Copy link
Contributor Author

sseppi commented Sep 25, 2024

@sseppi @pkritzinger I recommend to let the browser do the truncation via css. Defining a max number of characters is not always helpful with non-monospaced fonts, e.g.

iiiiiiiiii => 10 chars oooooooooo => 10 chars

@gappc Yes, you're right. I would do the truncation via css and implement the hover effect to see the full dataset name. Moreover, once the dropdown menu is open, in the list of dataset the full name must be shown, to let the user find the dataset he is looking for.

@pkritzinger
Copy link
Collaborator

@sseppi @gappc sounds good!
do you need any design specs from our side or can you directly implement it?

@sseppi
Copy link
Contributor Author

sseppi commented Sep 26, 2024

@pkritzinger in my point of view is ready to be implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants