Skip to content

UX: show image caption button on image hover #670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Conversation

awesomerobot
Copy link
Member

This hides the image caption button on non-touch devices (desktop) until the image is hovered.

In discourse/discourse@0a99407 we made the image controls always visible (not just on hover), and the caption button can kind of get in the way. So this helps hide it until needed since it's a little large.

Before (button obscures image always):

image

After (button appears on control or image hover):
image

Copy link
Contributor

@pmusaraj pmusaraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This button feels too big to me (even on hover), but we can cross that bridge later.

@SamSaffron SamSaffron merged commit 59ed6d7 into main Jun 19, 2024
5 checks passed
@SamSaffron SamSaffron deleted the ux-caption-hover branch June 19, 2024 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants