mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-22 16:41:38 +03:00
settings: adjustments to fluid containers
This commit is contained in:
parent
89e03a902b
commit
507663843a
@ -9,14 +9,23 @@ import { TooltipAnchor } from "~/components/system/components/fragments/TooltipA
|
|||||||
const STYLES_DESCRIPTION_GROUP_LABEL = css`
|
const STYLES_DESCRIPTION_GROUP_LABEL = css`
|
||||||
font-family: ${Constants.font.semiBold};
|
font-family: ${Constants.font.semiBold};
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
padding: 0 0 0 0;
|
padding: 0;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
overflow-wrap: break-word;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const STYLES_DESCRIPTION_GROUP_DESCRIPTION = css`
|
const STYLES_DESCRIPTION_GROUP_DESCRIPTION = css`
|
||||||
|
font-family: ${Constants.font.text};
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
overflow-wrap: break-word;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const DescriptionGroup = (props) => {
|
export const DescriptionGroup = (props) => {
|
||||||
|
@ -1,32 +1,39 @@
|
|||||||
import * as React from 'react';
|
import * as React from "react";
|
||||||
import * as Actions from '~/common/actions';
|
import * as Actions from "~/common/actions";
|
||||||
import * as System from '~/components/system';
|
import * as System from "~/components/system";
|
||||||
|
|
||||||
import { css } from '@emotion/react';
|
import { css } from "@emotion/react";
|
||||||
|
|
||||||
import ScenePage from '~/components/core/ScenePage';
|
import ScenePage from "~/components/core/ScenePage";
|
||||||
|
|
||||||
const STYLES_GROUP = css`
|
const STYLES_GROUP = css`
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
width: 100%;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
max-width: 768px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const STYLES_SUBGROUP = css`
|
const STYLES_SUBGROUP = css`
|
||||||
padding-left: 24px;
|
padding-left: 24px;
|
||||||
|
width: 100%;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
white-space: pre-wrap;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const STYLES_LEFT = css`
|
const STYLES_LEFT = css`
|
||||||
flex-shrink: 0;
|
|
||||||
padding: 12px 0 0 0;
|
padding: 12px 0 0 0;
|
||||||
min-width: 480px;
|
min-width: 10%;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
white-space: pre-wrap;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const STYLES_RIGHT = css`
|
const STYLES_RIGHT = css`
|
||||||
min-width: 10%;
|
|
||||||
padding-left: 48px;
|
padding-left: 48px;
|
||||||
padding-top: 24px;
|
padding-top: 24px;
|
||||||
width: 100%;
|
flex-shrink: 0;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export default class SceneSettings extends React.Component {
|
export default class SceneSettings extends React.Component {
|
||||||
@ -50,7 +57,8 @@ export default class SceneSettings extends React.Component {
|
|||||||
addr: this.state.settings_cold_default_address,
|
addr: this.state.settings_cold_default_address,
|
||||||
dealMinDuration: this.state.settings_cold_default_duration,
|
dealMinDuration: this.state.settings_cold_default_duration,
|
||||||
repFactor: this.state.settings_cold_default_replication_factor,
|
repFactor: this.state.settings_cold_default_replication_factor,
|
||||||
excludedMinersList: this.state.settings_cold_default_excluded_miners,
|
excludedMinersList: this.state
|
||||||
|
.settings_cold_default_excluded_miners,
|
||||||
trustedMinersList: this.state.settings_cold_default_trusted_miners,
|
trustedMinersList: this.state.settings_cold_default_trusted_miners,
|
||||||
maxPrice: this.state.settings_cold_default_max_price,
|
maxPrice: this.state.settings_cold_default_max_price,
|
||||||
renew: {
|
renew: {
|
||||||
@ -127,8 +135,9 @@ export default class SceneSettings extends React.Component {
|
|||||||
value={this.state.settings_cold_default_address}
|
value={this.state.settings_cold_default_address}
|
||||||
category="address"
|
category="address"
|
||||||
onChange={this._handleChange}
|
onChange={this._handleChange}
|
||||||
options={this.state.addresses}>
|
options={this.state.addresses}
|
||||||
{currentAddress ? currentAddress.name : 'None'}
|
>
|
||||||
|
{currentAddress ? currentAddress.name : "None"}
|
||||||
</System.SelectMenu>
|
</System.SelectMenu>
|
||||||
|
|
||||||
<System.Input
|
<System.Input
|
||||||
@ -169,7 +178,8 @@ export default class SceneSettings extends React.Component {
|
|||||||
style={{ marginTop: 48 }}
|
style={{ marginTop: 48 }}
|
||||||
name="settings_cold_default_auto_renew"
|
name="settings_cold_default_auto_renew"
|
||||||
value={this.state.settings_cold_default_auto_renew}
|
value={this.state.settings_cold_default_auto_renew}
|
||||||
onChange={this._handleChange}>
|
onChange={this._handleChange}
|
||||||
|
>
|
||||||
Enable auto renew for Filecoin Network deals.
|
Enable auto renew for Filecoin Network deals.
|
||||||
</System.CheckBox>
|
</System.CheckBox>
|
||||||
|
|
||||||
@ -184,7 +194,9 @@ export default class SceneSettings extends React.Component {
|
|||||||
onChange={this._handleChange}
|
onChange={this._handleChange}
|
||||||
/>
|
/>
|
||||||
<div style={{ marginTop: 32 }}>
|
<div style={{ marginTop: 32 }}>
|
||||||
<System.ButtonPrimary onClick={this._handleSave}>Save</System.ButtonPrimary>
|
<System.ButtonPrimary onClick={this._handleSave}>
|
||||||
|
Save
|
||||||
|
</System.ButtonPrimary>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
@ -212,7 +224,8 @@ export default class SceneSettings extends React.Component {
|
|||||||
style={{ marginTop: 48 }}
|
style={{ marginTop: 48 }}
|
||||||
name="settings_hot_allow_unfreeze"
|
name="settings_hot_allow_unfreeze"
|
||||||
value={this.state.settings_hot_allow_unfreeze}
|
value={this.state.settings_hot_allow_unfreeze}
|
||||||
onChange={this._handleChange}>
|
onChange={this._handleChange}
|
||||||
|
>
|
||||||
IPFS allow unfreeze setting description.
|
IPFS allow unfreeze setting description.
|
||||||
</System.CheckBox>
|
</System.CheckBox>
|
||||||
|
|
||||||
@ -228,7 +241,9 @@ export default class SceneSettings extends React.Component {
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<div style={{ marginTop: 32 }}>
|
<div style={{ marginTop: 32 }}>
|
||||||
<System.ButtonPrimary onClick={this._handleSave}>Save</System.ButtonPrimary>
|
<System.ButtonPrimary onClick={this._handleSave}>
|
||||||
|
Save
|
||||||
|
</System.ButtonPrimary>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
|
Loading…
Reference in New Issue
Block a user