fix: Replace custom pagination component with picocrank pagination component

- Replace custom pagination component with picocrank pagination component
- Update package.json and package-lock.json to include picocrank
- Update style.css to include new padding class
- Update ActionDetailsView.vue and LogsListView.vue to use new pagination component
This commit is contained in:
jamesread
2025-11-16 00:05:50 +00:00
parent 5b57cf2480
commit c1508a0a65
7 changed files with 115 additions and 503 deletions

View File

@@ -67,7 +67,7 @@
<script setup>
import { ref, computed, onMounted } from 'vue'
import Pagination from '../components/Pagination.vue'
import Pagination from 'picocrank/vue/components/Pagination.vue'
import Section from 'picocrank/vue/components/Section.vue'
import { useI18n } from 'vue-i18n'
@@ -172,16 +172,20 @@ onMounted(() => {
display: flex;
align-items: center;
gap: 0.5rem;
border: 1px solid #ddd;
border-radius: 4px;
padding: 0.5rem;
border: 1px solid var(--border-color);
border-radius: 0.25rem;
background: var(--section-background);
width: 100%;
max-width: 300px;
}
.input-with-icons input {
border: none;
outline: none;
background: transparent;
flex: 1;
font-size: 1rem;
color: var(--text-primary);
}
.input-with-icons button {
@@ -192,9 +196,6 @@ onMounted(() => {
border-radius: 3px;
}
.input-with-icons button:hover:not(:disabled) {
}
.input-with-icons button:disabled {
opacity: 0.5;
cursor: not-allowed;
@@ -221,24 +222,25 @@ onMounted(() => {
text-decoration: underline;
}
.status-success {
color: #28a745;
.annotation {
font-weight: 500;
font-size: smaller;
}
.status-success {
color: var(--karma-good-fg);
}
.status-error {
color: #dc3545;
font-weight: 500;
color: var(--karma-bad-fg);
}
.status-timeout {
color: #ffc107;
font-weight: 500;
color: var(--karma-warning-fg);
}
.status-blocked {
color: #6c757d;
font-weight: 500;
color: var(--karma-neutral-fg);
}
.empty-state {