From 8bb83cca43f23204b179d0c6bef583afbf31ed82 Mon Sep 17 00:00:00 2001 From: mdPlusPlus Date: Tue, 24 Jan 2023 00:00:48 +0100 Subject: [PATCH] Make description clamp to 3 lines max --- output/styles2.css | 12 +++++++++++- sites/+components/tbl_communities.php | 7 ++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/output/styles2.css b/output/styles2.css index 26a1c3d..b728c0f 100644 --- a/output/styles2.css +++ b/output/styles2.css @@ -16,7 +16,17 @@ header { .td_identifier { font-family: monospace; } #th_name { width:13%; } #th_language { width:0% } -#th_description { } +#th_description { } +.clamp { + /*white-space: nowrap;*/ + overflow: hidden; + text-overflow: ellipsis; + display: + -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; + +} #th_users { width:0% } .td_users { text-align: right; } #th_preview { width:19%; } diff --git a/sites/+components/tbl_communities.php b/sites/+components/tbl_communities.php index 200cb56..6e4123b 100644 --- a/sites/+components/tbl_communities.php +++ b/sites/+components/tbl_communities.php @@ -38,8 +38,9 @@ language?> name?> - description?> - +
+ description?> +
active_users?> @@ -64,4 +65,4 @@ - \ No newline at end of file +