Skip to content

Commit

Permalink
[RNMobile] Correct multiple sliders spacings (#25017)
Browse files Browse the repository at this point in the history
* Correct spacings

* Correct cellContainerStyle
  • Loading branch information
lukewalczak committed Sep 2, 2020
1 parent 26fd3cd commit f7d3945
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
12 changes: 4 additions & 8 deletions packages/block-library/src/columns/editor.native.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@
margin: $block-edge-to-content / 2;
}

.rangeCell {
flex-direction: row;
padding-left: $grid-unit;
padding-right: $grid-unit;
}

.cellContainerStyle {
flex-direction: row;
padding-top: $grid-unit-10;
padding-bottom: $grid-unit-10;
min-height: 48px;
align-items: center;
margin-top: $grid-unit;
margin-bottom: $grid-unit;
}
10 changes: 7 additions & 3 deletions packages/components/src/mobile/bottom-sheet/cell.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,13 @@ class BottomSheetCell extends Component {
/>
</View>
) }
<Text style={ [ defaultLabelStyle, labelStyle ] }>
{ label }
</Text>
{ label && (
<Text
style={ [ defaultLabelStyle, labelStyle ] }
>
{ label }
</Text>
) }
</View>
{ customActionButton && (
<TouchableOpacity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
.container {
flex-direction: row;
align-items: center;

}

.cellContainerStyles {
Expand Down

0 comments on commit f7d3945

Please sign in to comment.