Prettier no data div

This commit is contained in:
Teemu Patja 2017-11-02 12:58:45 +02:00
parent ec2ac80478
commit 2f84829c2a
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
4 changed files with 23 additions and 3 deletions

View File

@ -54,7 +54,8 @@
(defn activity-list [activity-items]
[:div.ui.container.activity-container
(if (empty? activity-items)
[:div.ui.text "No data"]
[:div.view-no-data-container
[:p "No recent activity yet"]]
(into [:div.ui.items]
(for [item activity-items]
^{:key item} [activity-item item])))] )

View File

@ -42,7 +42,8 @@
[:div.ui.container.open-bounties-container
[:div.open-bounties-header "Bounties"]
(if (empty? open-bounties)
[:div.ui.text "No data"]
[:div.view-no-data-container
[:p "No recent activity yet"]]
(into [:div.ui.items]
(for [bounty open-bounties]
[bounty-item bounty])))])

View File

@ -138,7 +138,8 @@
(let [top-hunters (rf/subscribe [:top-hunters])]
(fn []
(if (empty? @top-hunters)
[:div.ui.text "No data"]
[:div.view-no-data-container
[:p "No recent activity yet"]]
(into [:div.ui.items]
(map-indexed (fn [idx hunter]
[:div.item

View File

@ -304,6 +304,23 @@
}
}
.view-no-data-container {
padding: 64px;
display: flex;
flex-direction: column;
justify-content: center;
height: auto;
p {
text-align: center;
font-family: "PostGrotesk-Book";
color: #8d99a4;
font-size: 15 px;
}
}
.view-loading-label {
font-size: 18px !important;
}