Skip to content

Commit

Permalink
Fix alignment of inventory columns
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfheij-sil committed Sep 19, 2024
1 parent dd6ff2c commit 49775ab
Show file tree
Hide file tree
Showing 6 changed files with 219 additions and 211 deletions.
197 changes: 99 additions & 98 deletions lib/platform-bible-react/dist/index.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/platform-bible-react/dist/index.cjs.map

Large diffs are not rendered by default.

204 changes: 103 additions & 101 deletions lib/platform-bible-react/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/platform-bible-react/dist/index.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,14 @@ export const inventoryCountColumn = (countLabel: string): ColumnDef<ItemData> =>
return {
accessorKey: 'count',
header: ({ column }) => (
<Button variant="ghost" onClick={() => column.toggleSorting(undefined)}>
{countLabel}
{getSortingIcon(column.getIsSorted())}
</Button>
<div className="pr-flex pr-justify-end pr-tabular-nums">
<Button variant="ghost" onClick={() => column.toggleSorting(undefined)}>
{countLabel}
{getSortingIcon(column.getIsSorted())}
</Button>
</div>
),
cell: ({ row }) => <div className="pr-flex pr-justify-end">{row.getValue('count')}</div>,
};
};

Expand All @@ -57,10 +60,12 @@ export const inventoryStatusColumn = (
accessorKey: 'status',
header: ({ column }) => {
return (
<Button className="pr-mt-1" variant="ghost" onClick={() => column.toggleSorting(undefined)}>
{statusLabel}
{getSortingIcon(column.getIsSorted())}
</Button>
<div className="pr-flex pr-justify-center">
<Button variant="ghost" onClick={() => column.toggleSorting(undefined)}>
{statusLabel}
{getSortingIcon(column.getIsSorted())}
</Button>
</div>
);
},
cell: ({ row }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const scriptureSnippet: string = `\\id MAT 40-MAT-web.sfm World English Bible (W
\\p
\\v 17 So all the generations from Abraham to David are fourteen generations; from David to the exile to Babylon fourteen generations; and from the carrying away to Babylon to the Christ, fourteen generations.
\\p
\\v 18 Now the birth of Jesus Christ was like like this: After his mother, Mary, was engaged to Joseph, before they came together, she was found pregnant by the Holy Spirit.
\\v 18 Now the birth of Jesus Christ was like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like this: After his mother, Mary, was engaged to Joseph, before they came together, she was found pregnant by the Holy Spirit.
\\v 19 Joseph, her husband, being a righteous man, and not willing to make her a public example, intended to put her away secretly.
\\v 20 But when he thought about these things, behold,\\f + \\fr 1:20 \\ft “Behold”, from “ἰδοὺ”, means look at, take notice, observe, see, or gaze at. It is often used as an interjection.\\f* an angel of the Lord appeared to him in a dream, saying, “Joseph, son of David, don’t be afraid to take to yourself Mary as your wife, for that which is conceived in her is of the Holy Spirit.
\\v 20 But when he thought about these things, behold,\\f + \\fr 1:20 \\ft “Behold”, from “ἰδοὺ”, means look at, take notice, observe, see, or gaze at. It is often used as an interjection.\\f* an angel of the Lord appeared to him in a dream, saying, “Joseph, son of David, don’t be afraid to take to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to yourself Mary as your wife, for that which is conceived in her is of the Holy Spirit.
\\v 21 She shall give birth to a son. You shall name him Jesus,\\f + \\fr 1:21 \\ft “Jesus” means “Salvation”.\\f* for it is he who shall save his people from their sins.”
\\p
\\v 22 Now all this has happened that it might be fulfilled which was spoken by the Lord through the prophet, saying,
Expand Down

0 comments on commit 49775ab

Please sign in to comment.