Gallery view text truncated. Any way to see it or expand it?

Hi All, in my data I have some text fields that are around 50 words long. When I use the gallery view, the text in this fields is truncated (you can only see the first few words). Is there any way to see the complete text in each field in the gallery view? Or perhaps a way to customize the default le get if text per field visible?

Thanks!

1 Like

As far as I know you can not customise the height of the cards neither can you customise the height of individual fields within the card.

Maybe this could be a feature request if the team agrees that we want to implement that?

1 Like

Yeah, I mean more than customization it would be about being capable of seeing the information in the cards I guess. I guess I would ask then this as a feature of it does not exist :). Thanks!

1 Like

Hello @shaping-horizons, the problem is that the cards in the Gallery view must be equal in height. But we understand your concerns, and we will brainstorm on what can be done in order to make it possible to see all text in cards.

1 Like

I see @olgatrykush , not sure how challenging would be to code but what about simply that the text appears on top of the card when someone scrolls over the field?

javascript: (function () {var test = document.querySelectorAll('.card-text');[].forEach.call(test, function(div) { div.style.height = "fit-content";  div.style.overflowWrap = "break-word";  div.style.whiteSpace = "normal";});})();

@shaping-horizons, you can copy this code into a browser-bookmark.

When you are on the Baserow gallery view in your browser, click the bookmark and it will show all of the text in all of the text fields.

This is a temporary workaround. If they change the underlying code it could break. But its better than nothing.

The issue with that fix, is that it will break some core functionality of the gallery view.

We use the height of the card to determine how many cards are currently visible. We need that information to correctly fetch more cards when you scroll for example.

We don’t just load all the cards on page load, we just load a few of them and continue lazy loading while you scroll, this allows Baserow to be as performant as it is.

So be careful, this fix might impact your performance, but if you can live with that you can of course use the workaround!

2 Likes

@Alex or @baserow.rvor6 o you have any clue whether some line of code could be added to showcase the information if someone scrolls over the card or something similar? Or do you have any other idea to show the information of the cards when the input is longer than the current truncated length?

Hey, I don’t think we usually recommend to add some in-line scripts to bookmarks for example since it might mess with the current or future versions of Baserow.

We will discuss internally with our UX designer what the best approach would be to make this information available without destroying existing core functionality.

Hello, I would like to know if this topic is still being investigated ?

At least, to meet the need to have the same height in every card, I think that we should copy the Airtable approach for which, at least, one a long text can have several lines (it breaks after some lines ) >

We have an open issue regarding the introduction of automatic scaling for images in the card views: Scaling option for cover images on card views (#2073) · Issues · Baserow / baserow · GitLab.

I will also discuss your suggestion about breaking text into several lines for cards with the team.

1 Like

Thank you for your quick answer and the link.

1 Like

Hey @mamatdunet, I’ve discussed the idea of breaking text into several lines for cards, and it was accepted. We will make it possible to choose how many lines of text you want to have in the settings. Thanks for bringing our attention to this enhancement. :raised_hands:

Wow that’s so cool ! Thanks a lot Olga for your feedback and to accept it ! Have a nice weekend !

1 Like

Hi @olgatrykush : it seems that this feature is still not in production. Do you confirm it ?
Do you think that it will be soon ?

Thank you !

Hello @mamatdunet. Unfortunately, this feature hasn’t been released yet. You can track its progress using this link: Breaking text into several lines for card views (#2674) · Issues · Baserow / baserow · GitLab :slightly_smiling_face:

1 Like