diff --git a/cwd-admin/src/views/CommentsView.vue b/cwd-admin/src/views/CommentsView.vue index 084114e..dce9ba1 100644 --- a/cwd-admin/src/views/CommentsView.vue +++ b/cwd-admin/src/views/CommentsView.vue @@ -921,13 +921,13 @@ onMounted(() => { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); width: 100%; max-width: 600px; - height: 100vh; padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 16px; transform: translateX(0); animation: drawer-in 0.2s ease-out; + overflow-y: auto; } .modal-title { diff --git a/cwd-api/src/api/admin/listComments.ts b/cwd-api/src/api/admin/listComments.ts index ae30dfd..ff0c566 100644 --- a/cwd-api/src/api/admin/listComments.ts +++ b/cwd-api/src/api/admin/listComments.ts @@ -27,7 +27,7 @@ export const listComments = async (c: Context<{ Bindings: Bindings }>) => { .first<{ count: number }>(); const { results } = await c.env.CWD_DB.prepare( - `SELECT * FROM Comment ${whereSql} ORDER BY priority DESC, created DESC LIMIT ? OFFSET ?` + `SELECT * FROM Comment ${whereSql} ORDER BY created DESC LIMIT ? OFFSET ?` ) .bind(...params, limit, offset) .all();