cleaner look
This commit is contained in:
parent
c96c1e4bca
commit
642cf4b478
2 changed files with 14 additions and 14 deletions
|
@ -123,12 +123,12 @@
|
|||
_ (when-not image-url (println "image-url nil: " message))
|
||||
author-page (author-page-url message)]
|
||||
[:img.userpic
|
||||
{:style {:max-height "100%"
|
||||
:max-width "30%"
|
||||
:margin-right "2%"
|
||||
{:style {:height "100%"
|
||||
:width "100%"
|
||||
; :margin-right "2%"
|
||||
; :-webkit-filter "saturate(0)"
|
||||
:cursor "pointer"
|
||||
:float "left"
|
||||
; :float "left"
|
||||
}
|
||||
:on-click #(open author-page)
|
||||
:src (if image-url (replace image-url #"normal" "bigger") nil)}]))
|
||||
|
@ -153,14 +153,14 @@
|
|||
[:div {:style {:height (str height "vh")
|
||||
:line-height "1.6em"
|
||||
:width "99%"
|
||||
; :-webkit-filter "blur(1px)"
|
||||
:background "rgba(0,0,0,0.9)"
|
||||
:margin "1px"
|
||||
:color "rgba(255,255,255,0.8)"
|
||||
:background "rgba(255,255,255,0.8)"
|
||||
:color "rgba(0,0,0,0.8)"
|
||||
:font-size "0.3em"
|
||||
:overflow "hidden"
|
||||
:border-radius (str (/ height 2) "vh")
|
||||
}}
|
||||
[user-pic {:message message}]
|
||||
[user-name message params]
|
||||
[text message]
|
||||
[actions-holder message params]]))
|
||||
; [user-pic {:message message}]
|
||||
; [user-name message params]
|
||||
; [text message]
|
||||
; [actions-holder message params]
|
||||
]))
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
nb-seconds (count (keys tweets-by-sec))
|
||||
max-nb (reduce #(max %1 (count %2)) 0 (vals tweets-by-sec))
|
||||
vh-height (/ 40 max-nb)
|
||||
tw-width (* 3 vh-height)
|
||||
tw-width vh-height
|
||||
]
|
||||
[:div {:style {:text-align "left"
|
||||
:line-height "2em"
|
||||
|
@ -116,7 +116,7 @@
|
|||
(for [tweet (get tweets-by-sec tweet-sec)]
|
||||
[message tweet vh-height ])
|
||||
|
||||
[:div {:style {:font-size ".5em"}} (clojure.string/replace (.toISOString (js/Date. (:pub_date_epoch_ms tweet-sec)))
|
||||
[:div {:style {:font-size ".3em"}} (clojure.string/replace (.toISOString (js/Date. (:pub_date_epoch_ms tweet-sec)))
|
||||
#".*T" "")]
|
||||
])])))
|
||||
|
||||
|
|
Loading…
Reference in a new issue