logbook-card icon indicating copy to clipboard operation
logbook-card copied to clipboard

Make displayed text on card selectable/copy-able to clipboard

Open mkanet opened this issue 5 months ago • 0 comments

Is your feature request related to a problem? Please describe. I really like log-book card. However, for some reason, none of the text displayed on the card can be selected and copied to the clipboard.

Describe the solution you'd like Just make the displayed text selectable with a mouse cursor or touch-screen (in order to copy the text to the clipboard). I can already do this with some home assistant cards like markdown card; but just not logbook-card.

Describe alternatives you've considered Currently, users would have to take a screenshot of the logbook card, then use OCR to extract the text and copy to clipboard. It shouldn't be that hard select and copy text to clipboard. In fact, I'm surprised that nobody has mentioned this already.

Additional context I tried to modify the source code myself by adding user-select: text; to the top-level contain for both css codeblocks in logbook-card.js. However, that didn't work. I really tried to do this myself; but, I think it will need to be done by the person who made this card. I think this would add a lot of value to the card for everyone.

mkanet avatar Jan 28 '24 03:01 mkanet