Line wrap and card height causing content to get cut off
Closed this issue · 6 comments
When the width of a pane is decreased it causes line wrapping inside the card. This sometimes causes content to get cut off, which is something I find undesirable.
Examples:
- When the width of a "pane" exceeds the width of the content a card displays normally (no line wrapping)
- A small amount of line wrapping, here only the word "by" is wrapped
- Here line wrapping is causing the content to extend beyond the boundaries of the card. The title, Github logo and name of the site are partially cut off.
- Here line wrapping does not cause the elements to move any further. Content that exceeds the line count is replaced with an Ellipsis (
…
)
My opinion
To me it would seem nice if none of the content were to get cut off because of line-wrapping. I would suggest starting the usage of the Ellipsis before content would get cut off.
Environment:
I am using the regular dark theme, on Linux (Plasma 5) with Obsidian for Linux. The screenshots above were made in preview mode.
I included +
-symbols in the screenshots for reference.
Same problem here
I solved this problem by using a CSS snippet ("Options" → "Appearance" → "CSS snippets"). Simply put a .css
file with the following content into your snippets folder:
.auto-card-link-card {
height: 9em;
}
.auto-card-link-thumbnail {
height: 100%;
max-width: 40%;
}
This should ensure that card links work independent of font size. However, which exact values you use is a matter of personal preference.
thanks for the PR!
release it as v1.2.1