Normal-OJ / new-front-end

v2 client for Normal Online Judge
https://noj.tw
Mozilla Public License 2.0
0 stars 7 forks source link

Sample test data got blocked by COPY button #80

Closed uier closed 1 year ago

uier commented 1 year ago

Expect to reserve the room for COPY button to avoid blocking the content

image

image

JacobLinCool commented 1 year ago

I believe using the group and group-hover approach to display the button is a great solution to this problem.

By implementing this approach, the button will only appear when the user hovers over the code block, avoiding any potential blocking issues. This way, users can still easily copy the content by selecting the text directly, and will discover the button when they hover over the area, making the functionality easily accessible.

JacobLinCool commented 1 year ago

I would love to contribute to this feature, please let me know how I can help.

I have implemented this feature, see #87.