Style touchups

feature/default_network_editable
Erik Marks 4 years ago
parent 64883aecb0
commit c3df1aab8d
  1. 12
      ui/app/pages/settings/networks-tab/index.scss
  2. 5
      ui/app/pages/settings/networks-tab/networks-tab.component.js

@ -2,7 +2,6 @@
&__content { &__content {
margin-top: 24px; margin-top: 24px;
display: flex; display: flex;
flex-direction: row;
height: 100%; height: 100%;
max-width: 739px; max-width: 739px;
justify-content: space-between; justify-content: space-between;
@ -11,6 +10,7 @@
margin-top: 0; margin-top: 0;
flex-direction: column; flex-direction: column;
overflow-x: hidden; overflow-x: hidden;
align-items: center;
} }
} }
@ -26,11 +26,12 @@
} }
&__network-form { &__network-form {
max-width: 343px;
max-height: 465px;
display: flex; display: flex;
flex: 1 0 auto;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
max-width: 343px;
max-height: 465px;
.page-container__footer { .page-container__footer {
border-top: none; border-top: none;
@ -108,6 +109,7 @@
display: none; display: none;
@media screen and (max-width: 575px) { @media screen and (max-width: 575px) {
width: 100%;
display: flex; display: flex;
padding-top: 23px; padding-top: 23px;
padding-bottom: 23px; padding-bottom: 23px;
@ -150,6 +152,10 @@
&:hover { &:hover {
cursor: pointer; cursor: pointer;
} }
@media screen and (max-width: 575px) {
margin: 0 4px 0 10px;
}
} }
@media screen and (max-width: 575px) { @media screen and (max-width: 575px) {

@ -226,10 +226,9 @@ export default class NetworksTab extends PureComponent {
const { const {
setNetworksTabAddMode, setNetworksTabAddMode,
setSelectedSettingsRpcUrl, setSelectedSettingsRpcUrl,
networkIsSelected,
networksTabIsInAddMode,
history, history,
isFullScreen, isFullScreen,
shouldRenderNetworkForm,
} = this.props } = this.props
return ( return (
@ -237,7 +236,7 @@ export default class NetworksTab extends PureComponent {
{isFullScreen && this.renderSubHeader()} {isFullScreen && this.renderSubHeader()}
<div className="networks-tab__content"> <div className="networks-tab__content">
{this.renderNetworksTabContent()} {this.renderNetworksTabContent()}
{!networkIsSelected && !networksTabIsInAddMode {!isFullScreen && !shouldRenderNetworkForm
? ( ? (
<div className="networks-tab__add-network-button-wrapper"> <div className="networks-tab__add-network-button-wrapper">
<Button <Button

Loading…
Cancel
Save