Skip to content

Commit

Permalink
pushing pixels in the right direction
Browse files Browse the repository at this point in the history
  • Loading branch information
siddarthkay committed Jun 19, 2023
1 parent be50fac commit 67145ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
13 changes: 5 additions & 8 deletions src/status_im2/contexts/share/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
:padding-bottom 8
:padding-horizontal 12
:border-radius 16
:margin-top 12
:margin-bottom 4
:margin-top 8
:margin-horizontal screen-padding
:background-color colors/white-opa-5
:flex-direction :column
Expand Down Expand Up @@ -66,13 +65,11 @@
(def profile-address-container
{:flex-direction :row
:justify-content :flex-start
:margin-top 4
:margin-horizontal 4})
:margin-top 4})

(def emoji-address-container
{:flex-direction :row
:justify-content :flex-start
:margin-horizontal 4})
:justify-content :flex-start})

(def emoji-hash-label
{:color colors/white-opa-40
Expand All @@ -88,7 +85,7 @@

(def emoji-share-button-container
{:position :absolute
:right 4
:right 0
:top 16})

(def emoji-hash-content
Expand All @@ -97,7 +94,7 @@
:padding-top 4
:padding-bottom 12
:padding-left 12
:font-size 14})
:font-size 13})

(def tabs-container
{:padding-horizontal screen-padding
Expand Down
6 changes: 3 additions & 3 deletions src/status_im2/contexts/share/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
"The goal here is to generate a string that begins with
join.status.im/u/ joined with the 1st 5 characters
of the compressed public key followed by an ellipsis followed by
the last 12 characters of the compressed public key"
the last 10 characters of the compressed public key"
[base-url public-pk]
(let [first-part-of-public-pk (subs public-pk 0 5)
ellipsis "..."
public-pk-size (count public-pk)
last-part-of-public-pk (subs public-pk (- public-pk-size 12) (- public-pk-size 1))
last-part-of-public-pk (subs public-pk (- public-pk-size 10) (- public-pk-size 1))
abbreviated-url (str base-url first-part-of-public-pk ellipsis last-part-of-public-pk)]
abbreviated-url))

Expand Down Expand Up @@ -174,6 +174,6 @@
:padding-top (navigation/status-bar-height)}
[blur/view
{:style style/blur
:background-color colors/neutral-80-opa-40
:background-color colors/neutral-80-opa-80-blur
:blur-amount 20}]
[tab-content window-width]])))

0 comments on commit 67145ff

Please sign in to comment.