fix contact settings layout issues (#11967)

feature/default_network_editable
Alex Donesky 3 years ago committed by GitHub
parent 3358ac2c1f
commit dcebf49032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui/pages/send/send.scss
  2. 9
      ui/pages/settings/contact-list-tab/contact-list-tab.component.js
  3. 8
      ui/pages/settings/contact-list-tab/index.scss
  4. 7
      ui/pages/settings/index.scss

@ -136,6 +136,10 @@
&__title { &__title {
@include H6; @include H6;
max-width: 20em;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
color: $black; color: $black;
} }

@ -1,5 +1,6 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import classnames from 'classnames';
import ContactList from '../../../components/app/contact-list'; import ContactList from '../../../components/app/contact-list';
import { import {
CONTACT_ADD_ROUTE, CONTACT_ADD_ROUTE,
@ -68,12 +69,16 @@ export default class ContactListTab extends Component {
} }
renderAddButton() { renderAddButton() {
const { history } = this.props; const { history, viewingContact, editingContact } = this.props;
return ( return (
<div className="address-book-add-button"> <div className="address-book-add-button">
<Button <Button
className="address-book-add-button__button" className={classnames({
'address-book-add-button__button': true,
'address-book-add-button__button--hidden':
viewingContact || editingContact,
})}
type="secondary" type="secondary"
rounded rounded
onClick={() => { onClick={() => {

@ -39,6 +39,10 @@
@include H3; @include H3;
margin-left: 24px; margin-left: 24px;
max-width: 8em;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
} }
} }
@ -258,6 +262,10 @@
@media screen and (max-width: 576px) { @media screen and (max-width: 576px) {
top: 16px; top: 16px;
right: 60px; right: 60px;
&--hidden {
display: none;
}
} }
} }
} }

@ -21,6 +21,13 @@
@include H3; @include H3;
flex: 1 0 auto; flex: 1 0 auto;
@media screen and (max-width: 575px) {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
max-width: 250px;
}
} }
} }

Loading…
Cancel
Save