Skip to content

Commit

Permalink
Add list style for panel content. Fix pagination buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Jul 3, 2024
1 parent d2ca8c4 commit e4397f7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/components/Pagination/VPagination.global.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<li>
<button
type="button"
:disabled="currentPage < 2"
:disabled="currentPage < 2 || !pages"
aria-label="Go to first page"
class="border border-base-border rounded-l-md px-2 py-1.5"
@click="currentPage = 1"
Expand All @@ -21,7 +21,7 @@
>
<button
type="button"
:disabled="currentPage < 2"
:disabled="currentPage < 2 || !pages"
aria-label="Go to previous page"
class="border border-base-border px-2 py-1.5"
@click="currentPage--"
Expand Down Expand Up @@ -77,7 +77,7 @@
type="button"
aria-label="Go to next page"
class="border border-base-border px-2 py-1.5"
:disabled="currentPage === pages"
:disabled="currentPage === pages || !pages"
@click="() => currentPage++"
>
Expand All @@ -86,7 +86,7 @@
<li role="presentation">
<button
type="button"
:disabled="currentPage === pages"
:disabled="currentPage === pages || !pages"
aria-label="Go to last page"
class="border border-base-border rounded-r-md px-2 py-1.5"
@click="() => (currentPage = pages)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
<VCardHeader class="border-t border-base-muted first:border-t-0">
{{ title }}
</VCardHeader>
<VCardContent>
<ul
<VCardContent class="panel-content-list">
<div
v-for="(text, index) in textList"
:key="index"
class="pt-1 text-sm "
>
<li v-html="text" />
</ul>
class="pt-1 text-sm"
v-html="text"
></div>
</VCardContent>
</template>

Expand All @@ -25,4 +24,19 @@ defineProps({
required: true
}
})
</script>
</script>

<style>
.panel-content-list {
ul {
margin: 1rem 0;
list-style: disc;
margin-left: 1rem;
}
ol {
list-style-type: decimal;
margin-left: 1rem;
}
}
</style>

0 comments on commit e4397f7

Please sign in to comment.