🐛(widgets) fix the show more apps button label
- Fixed the logic for the "show more" button text to correctly reflect the current state. - Updated button color for better visibility and adjusted styles by removing the minimum width constraint.
This commit is contained in:
@@ -273,7 +273,7 @@ listenEvent(widgetName, "init", null, false, async (args: GaufreWidgetArgs) => {
|
||||
moreServicesGrid.classList.toggle("hidden");
|
||||
showMoreChevron.classList.toggle("opened");
|
||||
const isOpened = showMoreChevron.classList.contains("opened");
|
||||
showMoreText.textContent = !isOpened ? viewLessLabel : viewMoreLabel;
|
||||
showMoreText.textContent = isOpened ? viewLessLabel : viewMoreLabel;
|
||||
};
|
||||
|
||||
showMoreBtn.addEventListener("click", () => {
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
|
||||
#show-more-button {
|
||||
background: none;
|
||||
color: #64748b;
|
||||
color: #626A80;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
padding: 8px 16px;
|
||||
@@ -192,7 +192,6 @@
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
min-width: 100px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
4
website/public/widgets/dist/lagaufre.js
vendored
4
website/public/widgets/dist/lagaufre.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user