Skip to content

Commit 8f1bc58

Browse files
salaxyenda
authored andcommitted
[FIX status-im#3136] Add a line under profile image when editing profile
Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
1 parent 7e78acc commit 8f1bc58

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

src/status_im/ui/screens/profile/styles.cljs

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@
4444
:justify-content :center
4545
:align-items :center})
4646

47+
(def profile-badge-edit
48+
{:flex-direction :column
49+
:justify-content :center})
50+
51+
(def modal-menu
52+
{:align-items :center})
53+
4754
(def context-menu-custom-styles
4855
{:optionsContainer {:margin-top 78}})
4956

@@ -63,10 +70,14 @@
6370
(defstyle profile-name-input-text
6471
{:font-size 15
6572
:text-align :center
66-
:ios {:letter-spacing -0.2
67-
:height 46
68-
:width 800}
69-
:android {:color colors/black}})
73+
:flex 1
74+
:ios {:letter-spacing -0.2
75+
:height 46
76+
:border-bottom-width 1
77+
:border-bottom-color styles/color-light-gray3}
78+
:android {:color colors/black
79+
:border-bottom-width 2
80+
:border-bottom-color styles/color-blue4}})
7081

7182
(def profile-badge-name-container
7283
{:flex 1

src/status_im/ui/screens/profile/views.cljs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,12 @@
101101
(i18n/label :t/camera-access-error)))))]))}])
102102

103103
(defn profile-badge-edit [{:keys [name last-online] :as account}]
104-
[react/view styles/profile-badge
104+
[react/view styles/profile-badge-edit
105105
[context-menu/modal-menu
106106
[chat-icon.screen/my-profile-icon {:account account
107107
:edit? true}]
108-
{} (i18n/label :t/image-source-title)
108+
styles/modal-menu
109+
(i18n/label :t/image-source-title)
109110
profile-icon-options]
110111
[react/view styles/profile-badge-name-container
111112
[profile-name-input name]

0 commit comments

Comments
 (0)