Skip to content

Commit ddd294e

Browse files
committed
feat: Enhance dropdown functionality and improve table responsiveness in forces list
1 parent 1c6b71e commit ddd294e

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

app/templates/forces/list.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
{% extends 'base.html' %}
22
{% block content %}
33

4+
<style>
5+
/* Fix dropdown clipping in table-responsive */
6+
.table-responsive {
7+
overflow: visible !important;
8+
}
9+
10+
@media (max-width: 767.98px) {
11+
.table-responsive {
12+
overflow-x: auto;
13+
}
14+
}
15+
</style>
16+
417
<div class="d-flex justify-content-between align-items-center mb-3">
518
<h2 class="m-0">Forces</h2>
619
<div>
@@ -65,10 +78,10 @@ <h2 class="m-0">Forces</h2>
6578
</a>
6679
<div class="dropdown">
6780
<button class="btn btn-link p-0 text-decoration-none" data-bs-toggle="dropdown"
68-
title="More actions">
81+
data-bs-boundary="viewport" aria-expanded="false" title="More actions">
6982
<i class="fa-solid fa-ellipsis-vertical"></i>
7083
</button>
71-
<ul class="dropdown-menu">
84+
<ul class="dropdown-menu dropdown-menu-end">
7285
<li>
7386
<a class="dropdown-item" href="#"
7487
onclick="event.preventDefault(); renameForce({{ force.id }}, '{{ force.name }}')">

0 commit comments

Comments
 (0)