Skip to content

Commit

Permalink
Merge pull request #38 from samply/feature/ui-fixes-2024-01-16
Browse files Browse the repository at this point in the history
Feature/UI fixes 2024 01 16
  • Loading branch information
MatsJohansen87 authored Jan 17, 2024
2 parents 464780a + 046784d commit 76491c3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/demo/public/catalogues/catalogue-dktk.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"key": "other",
"name": "D%",
"name": "Sonstiges / intersexuell",
"description": "Divers / intersexuell"
},
{
Expand Down
12 changes: 11 additions & 1 deletion packages/demo/src/styles/default/result-table.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,20 @@ lens-result-table {
}

lens-result-table::part(table-pagination-button) {
border: solid 1px var(--gray);
border: solid 1px var(--blue);
background: var(--white);
border-radius: var(--border-radius-small);
padding: var(--gap-xxs) var(--gap-s);
cursor: pointer;
}


lens-result-table::part(pagination-button-disabled) {
border: solid 1px var(--light-gray);
background: var(--white);
border-radius: var(--border-radius-small);
padding: var(--gap-xxs) var(--gap-s);
cursor: auto;
}

lens-result-table::part(info-button) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,16 +212,18 @@
<slot name="above-pagination"/>
<div part="table-pagination">
<button
part="table-pagination-button pagination-pagination-previous"
part="table-pagination-button pagination-pagination-previous
{activePage === 1 ? 'pagination-button-disabled' : ''}"
disabled={activePage === 1}
on:click={() => {
activePage = activePage - 1;
}}>&#8592;</button
>
<div part="table-pagination-pagenumber">{activePage}</div>
<button
part="table-pagination-button pagination-pagination-next"
disabled={activePage === Math.ceil(tableRowData.length / pageSize)}
part="table-pagination-button pagination-pagination-next
{activePage === Math.ceil(tableRowData.length / pageSize) || pageItems.length === 0 ? 'pagination-button-disabled' : ''}"
disabled={activePage === Math.ceil(tableRowData.length / pageSize)|| pageItems.length === 0}
on:click={() => {
activePage = activePage + 1;
}}>&#8594;</button
Expand Down

0 comments on commit 76491c3

Please sign in to comment.