Skip to content

Commit

Permalink
[MM-24642] Sidebar fixes (mattermost#4286)
Browse files Browse the repository at this point in the history
* Fixes to height and padding

* Add underlayColor

* Rename to index

* Revert height change for overflow change

* Increase toValue

* Update Android offset
  • Loading branch information
migbot authored May 18, 2020
1 parent d3a6e16 commit a819cce
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion app/components/search_bar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export default class Search extends PureComponent {
Animated.timing(
this.leftComponentAnimated,
{
toValue: 100,
toValue: 115,
duration: 200,
},
),
Expand Down Expand Up @@ -273,6 +273,7 @@ export default class Search extends PureComponent {
size: 25,
color: searchBarStyle.clearIconColorAndroid,
name: 'arrow-back',
underlayColor: 'transparent',
};

clearIcon = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ const getStyleSheet = makeStyleSheetFromTheme((theme) => {
searchContainer: {
flex: 1,
flexDirection: 'row',
overflow: 'hidden',
...Platform.select({
android: {
marginBottom: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {displayUsername} from '@mm-redux/utils/user_utils';
import {t} from 'app/utils/i18n';
import ChannelItem from 'app/components/sidebars/main/channels_list/channel_item';
import {ListTypes} from 'app/constants';
import {paddingHorizontal as padding} from 'app/components/safe_area_view/iphone_x_spacing';
import {paddingLeft} from 'app/components/safe_area_view/iphone_x_spacing';

const VIEWABILITY_CONFIG = ListTypes.VISIBILITY_CONFIG_DEFAULTS;

Expand Down Expand Up @@ -362,7 +362,7 @@ class FilteredList extends Component {

return (
<React.Fragment>
<View style={[styles.titleContainer, padding(isLandscape)]}>
<View style={[styles.titleContainer, paddingLeft(isLandscape)]}>
<Text style={styles.title}>
{intl.formatMessage({id, defaultMessage}).toUpperCase()}
</Text>
Expand Down
4 changes: 2 additions & 2 deletions app/components/sidebars/main/channels_list/list/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {General} from '@mm-redux/constants';
import {debounce} from '@mm-redux/actions/helpers';

import ChannelItem from 'app/components/sidebars/main/channels_list/channel_item';
import {paddingLeft as padding} from 'app/components/safe_area_view/iphone_x_spacing';
import {paddingLeft} from 'app/components/safe_area_view/iphone_x_spacing';
import {DeviceTypes, ListTypes} from 'app/constants';
import {SidebarSectionTypes} from 'app/constants/view';

Expand Down Expand Up @@ -333,7 +333,7 @@ export default class List extends PureComponent {

return (
<React.Fragment>
<View style={[styles.titleContainer, padding(isLandscape)]}>
<View style={[styles.titleContainer, paddingLeft(isLandscape)]}>
<Text style={styles.title}>
{intl.formatMessage({id, defaultMessage}).toUpperCase()}
</Text>
Expand Down
2 changes: 1 addition & 1 deletion app/components/sidebars/main/main_sidebar_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export default class MainSidebarBase extends Component {
searching,
} = this.state;

const offset = Platform.select({android: 60, ios: 0});
const offset = Platform.select({android: 64, ios: 0});
const multipleTeams = teamsCount > 1;
const showTeams = !searching && multipleTeams;
if (this.drawerSwiper) {
Expand Down

0 comments on commit a819cce

Please sign in to comment.