From cea9c2ef29a7fc6b1a117ac801cc3b1664b2426e Mon Sep 17 00:00:00 2001 From: Bobo Date: Tue, 22 Oct 2024 16:46:01 +0200 Subject: [PATCH] Limit link text to 3 lines --- src/components/governance/GovernanceLink.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/governance/GovernanceLink.vue b/src/components/governance/GovernanceLink.vue index 0f08cebff..923f12a4c 100644 --- a/src/components/governance/GovernanceLink.vue +++ b/src/components/governance/GovernanceLink.vue @@ -34,9 +34,17 @@ export default defineComponent({ color: $astar-blue; align-items: center; gap: 8px; + max-height: 80px; } a { color: $astar-blue; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; + overflow: hidden; + text-overflow: ellipsis; + max-height: 4.5em; + line-height: 1.5em; }