Skip to content

Commit

Permalink
Tweak Dropdown Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
smashedr committed Oct 26, 2024
1 parent a63a7c0 commit 9fe039a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/css/options.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ body {
max-width: 800px;
}

.dropdown-menu {
max-width: 86vw;
white-space: normal;
overflow: hidden;
text-overflow: ellipsis;
}

.blur {
backdrop-filter: blur(6px);
}
Expand Down
7 changes: 5 additions & 2 deletions src/html/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,15 @@ <h5 class="mt-3">

<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">Presets</button>
<ul class="dropdown-menu dropdown-menu-end">
<li><a class="dropdown-item" role="button"
<li><a class="dropdown-item text-ellipsis" role="button"
data-reset-input="pictureURL" data-value="https://images.cssnr.com/aviation">
https://images.cssnr.com/aviation</a></li>
<li><a class="dropdown-item" role="button"
<li><a class="dropdown-item text-ellipsis" role="button"
data-reset-input="pictureURL" data-value="https://picsum.photos/1920/1280">
https://picsum.photos/1920/1280</a></li>
<!-- <li><a class="dropdown-item text-ellipsis" role="button"-->
<!-- data-reset-input="pictureURL" data-value=" https://random-image-pepebigotes.vercel.app/api/random-image">-->
<!-- https://random-image-pepebigotes.vercel.app/api/random-image</a></li>-->
</ul>
</div>
</div>
Expand Down

0 comments on commit 9fe039a

Please sign in to comment.