Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Add word limitation in menu description (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
Naqibullah-sediqi authored Jun 3, 2024
1 parent d1d56f1 commit 039f4ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions dashboard/static/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,11 @@ body {
.alert-success {
background-color: #cda45e;
color: white;
}

.truncate-text {
max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2 changes: 1 addition & 1 deletion dashboard/templates/menus/menu-admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h4 class="mt-0 header-title menu-title"></h4>
{% for item in menus %}
<tr>
<td>{{ item.name }}</td>
<td>{{ item.description }}</td>
<td class="truncate-text">{{ item.description }}</td>
<td>{{ item.category }}</td>
<td>{{ item.price }}</td>
<td>
Expand Down

0 comments on commit 039f4ed

Please sign in to comment.