From 9f18d773d88a96f87c5515b659ac6b0c441aa032 Mon Sep 17 00:00:00 2001 From: Victor Oliva Date: Fri, 13 Dec 2024 10:02:27 +0100 Subject: [PATCH] fix: allow view codec struct title lines to be selected Closes #19 --- src/codec-components/ViewCodec/CStruct.tsx | 4 ++-- tailwind.config.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/codec-components/ViewCodec/CStruct.tsx b/src/codec-components/ViewCodec/CStruct.tsx index 0aeb80b..3dc0559 100644 --- a/src/codec-components/ViewCodec/CStruct.tsx +++ b/src/codec-components/ViewCodec/CStruct.tsx @@ -36,7 +36,7 @@ const StructItem: React.FC<{ const title = isComplexShape ? ( toggleCollapsed(pathStr)} - className="cursor-pointer flex select-none items-center py-1 gap-1" + className="cursor-pointer flex items-center py-1 gap-1" > {hasParentTitle && } @@ -51,7 +51,7 @@ const StructItem: React.FC<{ {hasParentTitle && } - + {name} diff --git a/tailwind.config.js b/tailwind.config.js index 2e9694a..e52341a 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,3 +1,5 @@ +import tailwindAnimate from "tailwindcss-animate" + /** * @type {import("tailwindcss").Config} */ @@ -96,6 +98,6 @@ export default { function ({ addVariant }) { addVariant("group-state-open", ':merge(.group)[data-state="open"] &') }, - require("tailwindcss-animate"), + tailwindAnimate, ], }