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

Add word limitation in menu description #43

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading