fix: allow view codec struct title lines to be selected

Closes #19
This commit is contained in:
Victor Oliva
2024-12-13 10:02:58 +01:00
parent ffd979f6c3
commit 9f18d773d8
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ const StructItem: React.FC<{
const title = isComplexShape ? (
<span
onClick={() => 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 && <ItemMarker />}
<ExpandBtn expanded={isExpanded} />
@@ -51,7 +51,7 @@ const StructItem: React.FC<{
<span className="flex items-center py-1 gap-1">
{hasParentTitle && <ItemMarker />}
<Dot size={16} />
<span className="select-none flex items-center gap-1">
<span className="flex items-center gap-1">
<span className="opacity-75">{name}</span>
<span ref={setTitleElement} />
</span>