Skip to content

Commit 355e1c9

Browse files
committed
fix(css/notes): allow the user to select text from the notes list
1 parent aac98a4 commit 355e1c9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/renderer/reader/components/ReaderMenu.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ const BookmarkCard: React.FC<{ bookmark: INoteState, isEdited: boolean, triggerE
893893
// }
894894
id={uuid}
895895
>
896-
<p><BookmarkLocatorInfo fallback={__("reader.bookmarks.index", { index: bookmark.index })} locatorExtended={bookmark.locatorExtended} /></p>
896+
<p style={{ userSelect: "text" }}><BookmarkLocatorInfo fallback={__("reader.bookmarks.index", { index: bookmark.index })} locatorExtended={bookmark.locatorExtended} /></p>
897897
</button>
898898
</div>
899899
}
@@ -937,7 +937,9 @@ const BookmarkCard: React.FC<{ bookmark: INoteState, isEdited: boolean, triggerE
937937
}
938938
}}
939939
className="R2_CSS_CLASS__FORCE_NO_FOCUS_OUTLINE"
940-
tabIndex={0}>
940+
tabIndex={0}
941+
style={{ userSelect: "text" }}
942+
>
941943
{tag}
942944
</a>
943945
</div>
@@ -950,11 +952,11 @@ const BookmarkCard: React.FC<{ bookmark: INoteState, isEdited: boolean, triggerE
950952
<div>
951953
<div aria-label={__("reader.annotations.date")}>
952954
<SVG ariaHidden svg={CalendarIcon} />
953-
<p>{dateStr}</p>
955+
<p style={{userSelect: "text"}}>{dateStr}</p>
954956
</div>
955957
<div aria-label={__("publication.progression.title")}>
956958
<SVG ariaHidden svg={BookOpenIcon} />
957-
<p>{bprogression}</p>
959+
<p style={{userSelect: "text"}}>{bprogression}</p>
958960
</div>
959961
{creatorName
960962
?
@@ -979,7 +981,7 @@ const BookmarkCard: React.FC<{ bookmark: INoteState, isEdited: boolean, triggerE
979981
}
980982
}}
981983
tabIndex={0}>
982-
<p style={{ overflow: "hidden", textOverflow: "ellipsis", padding: "0" }} title={creatorName}>{creatorName}</p>
984+
<p style={{ overflow: "hidden", textOverflow: "ellipsis", padding: "0", userSelect: "text" }} title={creatorName} >{creatorName}</p>
983985
</a>
984986
</div>
985987
: <></>

0 commit comments

Comments
 (0)