mirror of
https://github.com/status-im/open-bounty.git
synced 2025-02-20 05:08:12 +00:00
Add page-num-active style disabling pointer cursor
This commit is contained in:
parent
df8de46532
commit
bb71d830a8
@ -53,10 +53,10 @@
|
|||||||
(let [draw-page-num-fn (fn [current? i]
|
(let [draw-page-num-fn (fn [current? i]
|
||||||
^{:key i}
|
^{:key i}
|
||||||
[:div.rectangle-rounded
|
[:div.rectangle-rounded
|
||||||
(cond-> {}
|
(if current?
|
||||||
(not current?)
|
{:class "page-num-active"}
|
||||||
(assoc :class "grayed-out-page-num"
|
{:class "grayed-out-page-num"
|
||||||
:on-click #(rf/dispatch [:set-page-number i])))
|
:on-click #(rf/dispatch [:set-page-number i])})
|
||||||
i])
|
i])
|
||||||
max-page-nums 6]
|
max-page-nums 6]
|
||||||
[:div.page-nums-container
|
[:div.page-nums-container
|
||||||
|
@ -897,6 +897,10 @@ body {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-num-active {
|
||||||
|
cursor: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.grayed-out-page-num {
|
.grayed-out-page-num {
|
||||||
color: #8d99a4;
|
color: #8d99a4;
|
||||||
background-color: #f2f5f8;
|
background-color: #f2f5f8;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user