Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
{% endif %}
</div>
<div
class="text-secondary remove-last-tinymce-margin"
class="text-secondary remove-last-tinymce-margin overflow-hidden"
style="max-height: 300px"
Comment on lines +69 to +70
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is 300px still too much? (based on your screenshot examples)

Additionally, the full description can be displayed when you hover over it with the mouse?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can reduce the pixel size. However, I don't think displaying all the text is a good idea in terms of usability when the user hovers over a map, because the interface would flicker a lot.

data-testid="service-catalog-description"
>
{{ item.getServiceCatalogItemDescription()|safe_html }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<h2 id="{{ unique_dom_id }}" class="mb-0 fs-2">
{{ item.getServiceCatalogItemTitle() }}
</h2>
<div class="card-subtitle ms-2 remove-last-tinymce-margin">
<div class="card-subtitle ms-2 remove-last-tinymce-margin overflow-hidden" style="max-height: 300px">
{{ item.getServiceCatalogItemDescription()|safe_html }}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
>
{{ child.getServiceCatalogItemTitle() }}
</h2>
<div class="text-secondary remove-last-tinymce-margin">
<div class="text-secondary remove-last-tinymce-margin overflow-hidden" style="max-height: 300px">
{{ child.getServiceCatalogItemDescription()|safe_html }}
</div>
</div>
Expand Down