Skip to content

Commit 944f57f

Browse files
authored
Feat/ update gradient for TOP and BOTTOM overlays (#1311)
* Feat/ update gradient for TOP and BOTTOM overlay * update gradient image and height
1 parent 86a51b3 commit 944f57f

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
lines changed
71 Bytes
Loading
863 Bytes
Loading
-15 Bytes
Loading
8 Bytes
Loading
-113 Bytes
Loading

src/components/overlay/index.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ class Overlay extends PureComponent<OverlayTypes> {
7373
if (type === OVERLY_TYPES.VERTICAL) {
7474
return (
7575
<>
76-
{this.renderImage(this.getStyleByType(OVERLY_TYPES.TOP), image)}
77-
{this.renderImage(this.getStyleByType(OVERLY_TYPES.BOTTOM), image)}
76+
{this.renderImage([this.getStyleByType(OVERLY_TYPES.TOP), styles.vertical], image)}
77+
{this.renderImage([this.getStyleByType(OVERLY_TYPES.BOTTOM), styles.vertical], image)}
7878
{customContent && this.renderCustomContent()}
7979
</>
8080
);
@@ -97,14 +97,17 @@ const styles = StyleSheet.create({
9797
top: {
9898
bottom: undefined,
9999
top: 0,
100-
height: '50%'
100+
height: '75%'
101101
},
102102
bottom: {
103103
bottom: 0,
104104
top: undefined,
105-
height: '50%',
105+
height: '75%',
106106
transform: [{scaleY: -1}]
107107
},
108+
vertical: {
109+
height: '40%'
110+
},
108111
solid: {
109112
backgroundColor: Colors.rgba(Colors.dark10, 0.4)
110113
},

0 commit comments

Comments
 (0)