From f9a8ac43179e0bbc30f05f812ef8e169b7427813 Mon Sep 17 00:00:00 2001 From: MattMo Date: Sun, 24 Dec 2023 09:51:54 -0800 Subject: [PATCH] Improved read more design. --- readmore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readmore.js b/readmore.js index eaa4b3c..7e92493 100644 --- a/readmore.js +++ b/readmore.js @@ -17,7 +17,7 @@ class ReadMore extends IgniteElement { }), collapsed: true, collapsedValue: null, - collapseButtonClass: "btn btn-none ps-2 text-primary" + collapseButtonClass: "btn btn-none p-0 d-block text-primary" }; } @@ -28,7 +28,7 @@ class ReadMore extends IgniteElement { new button() .show([this.value, this.limit], (value, limit) => value && value.length > limit) .class(this.collapseButtonClass) - .innerText(this.collapsed, collapsed => collapsed ? "read more" : "read less") + .innerText(this.collapsed, collapsed => collapsed ? "Read more" : "Read less") .onClick(() => this.collapsed = !this.collapsed) ) }