-
Notifications
You must be signed in to change notification settings - Fork 985
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for "Jump to" button overlapping Logout button on the Profile scr…
…een (#19318) * Fix for "Jump to" button overlapping Logout button on the Profile screen * Fix for offsets * Code style * Fixes
- Loading branch information
Showing
2 changed files
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,27 @@ | ||
(ns status-im.contexts.profile.settings.style | ||
(:require [quo.foundations.colors :as colors])) | ||
(:require [quo.foundations.colors :as colors] | ||
[react-native.platform :as platform] | ||
[status-im.contexts.shell.jump-to.constants :as jump-to.constants])) | ||
|
||
(defn navigation-wrapper | ||
[{:keys [customization-color inset theme]}] | ||
{:padding-top inset | ||
:background-color (colors/resolve-color customization-color theme 40)}) | ||
|
||
(def footer-container | ||
{:margin-top 8 | ||
:margin-bottom 50 | ||
:padding-horizontal 20 | ||
:padding-vertical 12}) | ||
(def ^:const footer-padding 20) | ||
(def ^:const ios-bottom-offset -10) | ||
|
||
(defn footer-container | ||
[bottom] | ||
{:padding-horizontal footer-padding | ||
:padding-top footer-padding | ||
:padding-bottom (+ jump-to.constants/floating-shell-button-height | ||
footer-padding | ||
(if platform/ios? ios-bottom-offset bottom))}) | ||
|
||
(defn floating-shell-button-style | ||
[{:keys [bottom]}] | ||
{:position :absolute | ||
:bottom (if platform/ios? | ||
(+ bottom ios-bottom-offset) | ||
0)}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters