mirror of
https://github.com/penpot/penpot.git
synced 2025-06-10 11:31:39 +02:00
✨ Add more adaptations to make app run in a prefixed path.
This commit is contained in:
parent
2828ccda7f
commit
55ea84a056
14 changed files with 115 additions and 98 deletions
|
@ -67,11 +67,11 @@
|
|||
:viewer
|
||||
(:path-params route)
|
||||
{:token token :index "0"})
|
||||
link (str cfg/public-uri "/#" link)
|
||||
link (assoc cfg/public-uri :fragment link)
|
||||
|
||||
copy-link
|
||||
(fn [event]
|
||||
(wapi/write-to-clipboard link)
|
||||
(wapi/write-to-clipboard (str link))
|
||||
(st/emit! (dm/show {:type :info
|
||||
:content "Link copied successfuly!"
|
||||
:timeout 3000})))]
|
||||
|
@ -89,7 +89,7 @@
|
|||
[:div.share-link-input
|
||||
(if (string? token)
|
||||
[:*
|
||||
[:span.link link]
|
||||
[:span.link (str link)]
|
||||
[:span.link-button {:on-click copy-link}
|
||||
(t locale "viewer.header.share.copy-link")]]
|
||||
[:span.link-placeholder (t locale "viewer.header.share.placeholder")])]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue