Compare commits
No commits in common. "84109a342928251da5e685fde0072308016ca0f6" and "de2cf7f9c2f0033e79790bbbdc9eb974e7e4815f" have entirely different histories.
84109a3429
...
de2cf7f9c2
2 changed files with 4 additions and 10 deletions
|
|
@ -230,7 +230,6 @@
|
|||
margin-top: 16px;
|
||||
height: 320px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -134,9 +134,7 @@
|
|||
:redirect_uri (:redirect_uri application)}))})
|
||||
(.then (fn [res]
|
||||
(let [bearer-token (-> res :body :access_token)
|
||||
application (assoc application :bearer_token bearer-token)
|
||||
path (-> js/location .-pathname)]
|
||||
(.replaceState js/history nil "" path) ; remove ?code= param
|
||||
application (assoc application :bearer_token bearer-token)]
|
||||
(db/put! ::db/application application)
|
||||
application)))))
|
||||
|
||||
|
|
@ -358,12 +356,9 @@
|
|||
"video" [:video {:controls true}
|
||||
[:source {:type (str "video/" ext) :src remote-url}]
|
||||
[:a {:href (:remote_url attachment)} (str "Original video at " (:remote_url attachment))]]
|
||||
"gifv" (let [autoplay (r/atom false)
|
||||
toggle-autoplay #(swap! autoplay not)]
|
||||
(fn []
|
||||
[:video {:loop true :autoplay @autoplay :muted true :on-pointer-enter toggle-autoplay}
|
||||
"gifv" [:video {:loop true :autoplay true :muted true}
|
||||
[:source {:type (str "video/" ext) :src remote-url}]
|
||||
[:a {:href (:remote_url attachment)} (str "Original video at " (:remote_url attachment))]]))
|
||||
[:a {:href (:remote_url attachment)} (str "Original video at " (:remote_url attachment))]]
|
||||
[:div [:strong "Unsupported attachment"]
|
||||
[debug attachment]])))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue