Revised the account options in the report toolbar to be scrollable.

This commit is contained in:
依瑪貓 2023-04-18 08:03:06 +08:00
parent b6ae946f32
commit b8cec8a2af
2 changed files with 5 additions and 1 deletions

View File

@ -39,6 +39,10 @@
.accounting-toolbar { .accounting-toolbar {
display: flex; display: flex;
} }
.accounting-toolbar-accounts {
max-height: 20rem;
overflow-y: scroll;
}
.accounting-toolbar .input-group > .input-group-text { .accounting-toolbar .input-group > .input-group-text {
padding: 0; padding: 0;
background-color: transparent; background-color: transparent;

View File

@ -89,7 +89,7 @@ First written: 2023/3/8
<i class="fa-solid fa-clipboard"></i> <i class="fa-solid fa-clipboard"></i>
<span class="d-none d-md-inline">{{ A_("Account") }}</span> <span class="d-none d-md-inline">{{ A_("Account") }}</span>
</button> </button>
<ul class="dropdown-menu" aria-labelledby="accounting-choose-account"> <ul class="dropdown-menu accounting-toolbar-accounts" aria-labelledby="accounting-choose-account">
{% for account in report.account_options %} {% for account in report.account_options %}
<li> <li>
<a class="dropdown-item {% if account.is_active %} active {% endif %}" href="{{ account.url }}"> <a class="dropdown-item {% if account.is_active %} active {% endif %}" href="{{ account.url }}">