Skip to content

Commit

Permalink
Merge pull request #150 from citizennet/AS-1091/minor-style-tweak-to-…
Browse files Browse the repository at this point in the history
…new-pager

AS-1091 Minor style tweaks to the new pager
  • Loading branch information
boygao1992 authored Mar 3, 2021
2 parents 48733da + 0aec1db commit c1aeaca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "purescript-ocelot",
"version": "0.25.6",
"version": "0.25.7",
"private": true,
"scripts": {
"build-all": "yarn run build-ui && yarn run build-css",
Expand Down
6 changes: 3 additions & 3 deletions src/Blocks/Pager.purs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ makePagingButtonsNew skip last query = foldlWithIndex makePagingButtons' [] make

arrow :: Int -> HH.HTML p i -> HH.HTML p i
arrow skip' label =
HH.a
HH.button
[ HE.onMouseDown $ query skip'
, Ocelot.HTML.Properties.css "mx-4"
, Ocelot.HTML.Properties.style <<< Foreign.Object.fromHomogeneous
Expand All @@ -156,14 +156,14 @@ makePagingButtonsNew skip last query = foldlWithIndex makePagingButtons' [] make

button :: Int -> HH.HTML p i
button btn =
HH.a
HH.button
(if btn == skip then disabled else active)
[ HH.span_
[ HH.text $ show btn ]
]
where
disabled =
[ Ocelot.HTML.Properties.css "border border-black disabled inline-block text-center"
[ Ocelot.HTML.Properties.css "border border-black disabled focus:outline-none inline-block text-center"
, Ocelot.HTML.Properties.style <<< Foreign.Object.fromHomogeneous
$ { "border-radius": "50%"
, "width": "2.5rem"
Expand Down

0 comments on commit c1aeaca

Please sign in to comment.