Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adjust direction of dropdowns at the bottom of the page#4

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JelteF merged 5 commits intopostgres:masterfrompolkerty:patch-dropdowns
Jan 20, 2025

Conversation

polkerty
Copy link
Contributor

@polkertypolkerty commentedJan 16, 2025
edited
Loading

A revision of#2, which I'm reopening due to some messy merge history (master contains some force-pushes including files I also touch here.) The adjustment is to pass in a Django template variable to control when we want dropdowns to open "up".

At the bottom of the page:
image

At the top of the page:
image

It would still be nice to do this via a bootstrap upgrade and have the dropdown direction determined dynamically, but I think this is still just small enough of a change that it's worth it.

@@ -37,7 +37,10 @@ div.form-group div.controls input.threadpick-input {
display: inline;
}


.dropdown-menu--up {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of creating a custom class, it seems you can use thedropup class that's built into bootstrap instead (it's already used incommitfest.html). That also makes the caret point up. Other than that I think it's good thedropdown_mode thing seems to work well to isolate this to only the bottom of the page.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Ah, that's very nice! Updated.

@@ -183,7 +183,9 @@ <h4>Annotations</h4>
</tbody>
</table>

{% with dropdown_mode="dropup" %}
Copy link
Collaborator

Choose a reason for hiding this comment

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

After sleeping on this, I think if you make this a<div> you get the same effect without having to changepatch_commands.inc at all.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Ha, that works! Very clean. :)

@JelteFJelteF merged commitc361b4e intopostgres:masterJan 20, 2025
JelteF pushed a commit that referenced this pull requestJan 20, 2025
The bottom dropdowns on the patch page would expand downwards, requiringthe user to scroll down to see and click any of the buttons in the dropdown.With this change these are changed into "dropup" menus, so the expand upwards.
JelteF pushed a commit that referenced this pull requestJan 20, 2025
The bottom dropdowns on the patch page would expand downwards, requiringthe user to scroll down to see and click any of the buttons in the dropdown.With this change these are changed into "dropup" menus, so the expand upwards.
@JelteFJelteF mentioned this pull requestJan 22, 2025
11 tasks
JelteF pushed a commit that referenced this pull requestFeb 16, 2025
The bottom dropdowns on the patch page would expand downwards, requiringthe user to scroll down to see and click any of the buttons in the dropdown.With this change these are changed into "dropup" menus, so the expand upwards.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@JelteFJelteFJelteF left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@polkerty@JelteF

[8]ページ先頭

©2009-2025 Movatter.jp