Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Copy Link pop up can be completely off screen

+3
−0

The “Copy Link” button below each post has been changed so that it now has a pop up offering either a raw link or a Markdown link:

Pop up from the Copy Link button

This always appears just below the button, even when the length of the post or the scroll position means that the button is at the bottom of the window. This means the pop up can be completely off screen. This can be confusing for a user who does not know to expect a pop up, as they may think the link has now been copied to the clipboard, until they try to paste it somewhere and find that it doesn’t work. This could affect a user who is new to Codidact, or an existing user who is accustomed to the old button that had no pop up.

Could the pop up be made sensitive to the window position, in the same way that browser builtin drop down boxes are (they appear below when there is room, or otherwise above)?


Note that some of the other buttons also have this behaviour, so a fix should probably be applied to all of them together.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

1 answer

+1
−0

The challenge with making modals appear above if there's not room below is that they might then cover important content. If this happened to the Flag modal, for example, it might cover most of the post, which might make writing a custom flag harder. I think we probably want at least the post modals to all behave the same way; it would be confusing if Copy Link did one thing and Flag or Close did another.

Taking all of that into account, what is the best behavior? I don't know if it's possible in Ruby (or HTML for that matter), but one possibility that occurs to me is to leave the page content as it is but scroll the page a little so you see that there's a modal there. Would that help or would that be jarring? If that's a bad idea (or not possible), what else would work from a usability perspective?

From a suggestion in comments: maybe we could move the modal to the side so its presence is still clear -- probably doesn't work for flags on a phone (too wide), but seems like it would work for Copy Link:

mockup with modal to right of button

(Personally, I think I still prefer scrolling the page a little, as it would work with all modals, but I don't know how hard that is.)

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

3 comment threads

What about putting the popup to the left or right in that case? The worst it would cover is another b... (3 comments)
Temporary button wording change (1 comment)
Draggable? (1 comment)

Sign up to answer this question »