Skip to content

Dropdown + ellipsis fix #974

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 18 commits into from
Sep 4, 2023
Merged

Dropdown + ellipsis fix #974

merged 18 commits into from
Sep 4, 2023

Conversation

levkk
Copy link
Contributor

@levkk levkk commented Sep 1, 2023

  1. Add Dropdown component.
  2. Fix long database names, now they will have an ellipsis instead of an overflow.
Screenshot 2023-09-01 at 8 50 01 AM Screenshot 2023-09-01 at 8 49 44 AM Screenshot 2023-09-01 at 2 27 45 PM Screenshot 2023-09-01 at 2 27 38 PM Screenshot 2023-09-01 at 2 27 35 PM

@levkk levkk requested a review from chillenberger September 1, 2023 15:53
@chillenberger
Copy link
Contributor

When I run your code on my computer the left nav does not collapse correctly.

What it looks like on my computer
Screenshot 2023-09-01 at 10 22 52 AM

should look like
Screenshot 2023-09-01 at 10 23 55 AM

@levkk
Copy link
Contributor Author

levkk commented Sep 1, 2023

Ah, this is because leftnav-collapse-affect is actually a used CSS class.

</span>
</button>

<div class="menu-item horizontal-hide dropdown-toggle collapsed <% if collapsable { %> leftnav-collapse-affect <% } %>" href="#" role="button" data-bs-toggle="dropdown" data-bs-offset="68, -44" aria-expanded="false">
Copy link
Contributor

Choose a reason for hiding this comment

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

We might want the ability to control this data-bs-offset. It controls where the dropdown menu appears relative to its default position. Also, I can see needing to position the dropdown list left center or right very useful.

@levkk levkk force-pushed the levkk-dropdown-ellipsis branch from 51262ee to e95e7fc Compare September 4, 2023 22:50
@levkk levkk merged commit afd92c3 into master Sep 4, 2023
@levkk levkk deleted the levkk-dropdown-ellipsis branch September 4, 2023 22:56
SilasMarvin pushed a commit that referenced this pull request Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants