diff --git a/.changeset/happy-hounds-join.md b/.changeset/happy-hounds-join.md new file mode 100644 index 000000000..7b9140a86 --- /dev/null +++ b/.changeset/happy-hounds-join.md @@ -0,0 +1,5 @@ +--- +"@blobscan/web": patch +--- + +Fixed the issue where the "Show more" message was displayed incorrectly when the blob data container was opened and closed. The message now properly toggles between "Show more" when the container is closed and "Show less" when the container is open. diff --git a/apps/web/src/components/ExpandableContent.tsx b/apps/web/src/components/ExpandableContent.tsx index 842b9b25b..919948e01 100644 --- a/apps/web/src/components/ExpandableContent.tsx +++ b/apps/web/src/components/ExpandableContent.tsx @@ -46,11 +46,14 @@ export const ExpandableContent: FC = function ({ className="flex cursor-pointer items-center gap-1 text-primary-400 transition-colors hover:text-primary-300 " onClick={() => setOpened((opened) => !opened)} > - Show More{" "} {opened ? ( - + <> + Show More + ) : ( - + <> + Show Less + )}