Skip to content

Commit 14ab274

Browse files
author
Lucas Araujo
committed
[DDW-863] Change styles
1 parent fb10a96 commit 14ab274

File tree

8 files changed

+16
-42
lines changed

8 files changed

+16
-42
lines changed

source/renderer/app/components/layout/TopBar.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
display: flex;
55
height: 84px;
66
padding: 0 26px;
7-
position: relative;
87
z-index: 100;
98

109
&.withoutWallet {
@@ -37,12 +36,10 @@
3736
.walletName {
3837
-webkit-box-orient: vertical;
3938
color: var(--theme-topbar-wallet-name-color);
40-
display: inline;
4139
font-size: 21px;
4240
line-height: 25px;
4341
margin-bottom: 4px;
4442
overflow: hidden;
45-
position: relative;
4643
text-overflow: ellipsis;
4744
white-space: nowrap;
4845
width: 100%;
@@ -67,6 +64,7 @@
6764
flex-shrink: 0;
6865
height: 50px;
6966
justify-content: center;
67+
margin-right: 26px;
7068
width: 50px;
7169

7270
.sidebarIcon {
@@ -86,12 +84,12 @@
8684
justify-content: center;
8785
margin: auto;
8886
min-width: 0;
89-
padding-left: 26px;
9087
}
9188

9289
.rectangle {
9390
border-right: 1px solid var(--theme-node-sync-icon-color);
9491
height: 12px;
92+
margin-right: 28px;
9593
opacity: 0.3;
9694
}
9795
}

source/renderer/app/components/loading/syncing-connecting/SyncingConnecting.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
.newsFeedContainer {
1717
display: flex;
1818
justify-content: flex-end;
19-
padding-right: 29px;
19+
padding-right: 26px;
2020
padding-top: 20px;
2121
position: absolute;
2222
width: 100%;

source/renderer/app/components/widgets/NodeSyncStatusIcon.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const messages = defineMessages({
2121
type Props = {
2222
isSynced: boolean,
2323
syncPercentage: number,
24-
hasTadaIcon?: boolean,
2524
};
2625

2726
export default class NodeSyncStatusIcon extends Component<Props> {
@@ -30,13 +29,12 @@ export default class NodeSyncStatusIcon extends Component<Props> {
3029
};
3130

3231
render() {
33-
const { isSynced, syncPercentage, hasTadaIcon } = this.props;
32+
const { isSynced, syncPercentage } = this.props;
3433
const { intl } = this.context;
3534
const statusIcon = isSynced ? syncedIcon : spinnerIcon;
3635
const componentClasses = classNames([
3736
styles.component,
3837
isSynced ? styles.synced : styles.syncing,
39-
hasTadaIcon ? styles.hasTadaIcon : null,
4038
]);
4139
const percentage = syncPercentage.toFixed(syncPercentage === 100 ? 0 : 2);
4240

source/renderer/app/components/widgets/NodeSyncStatusIcon.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.component {
2-
margin: 0 40px;
2+
margin-left: 26px;
3+
margin-right: 39px;
34
overflow: visible;
45

56
&:hover {

source/renderer/app/features/discreet-mode/ui/discreet-toggle-top-bar/DiscreetToggleTopBar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.root {
2-
margin: 0 28px;
2+
margin-right: 18px;
33

44
.discreetToggle {
55
border-radius: 50%;

storybook/stories/_support/StoryLayout.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { observer, inject } from 'mobx-react';
77
import { get } from 'lodash';
88
import { action } from '@storybook/addon-actions';
99
import { select, boolean } from '@storybook/addon-knobs';
10-
import classNames from 'classnames';
1110
import { isShelleyTestnetTheme } from './utils';
1211

1312
// Assets and helpers
@@ -228,15 +227,9 @@ export default class StoryLayout extends Component<Props> {
228227
syncPercentage={100}
229228
isProduction
230229
isMainnet
231-
{...(boolean('hasTadaIcon', true) ? { hasTadaIcon: true } : {})}
232230
/>
233-
<span
234-
className={classNames(
235-
topBarStyles.rectangle,
236-
boolean('hasTadaIcon') && topBarStyles.hasTadaIcon
237-
)}
238-
/>
239-
<DiscreetToggleTopBar hasTadaIcon={boolean('hasTadaIcon')} />
231+
<span className={topBarStyles.rectangle} />
232+
<DiscreetToggleTopBar />
240233
{boolean('hasTadaIcon') && (
241234
<TadaButton onClick={action('onClickTadaButton')} shouldAnimate />
242235
)}

storybook/stories/nodes/environment/TopBarEnvironment.stories.js

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import React from 'react';
33
import { storiesOf } from '@storybook/react';
44
import { action } from '@storybook/addon-actions';
55
import { withKnobs, boolean } from '@storybook/addon-knobs';
6-
import classNames from 'classnames';
76
import StoryDecorator from '../../_support/StoryDecorator';
87
import StoryProvider from '../../_support/StoryProvider';
98
import SidebarLayout from '../../../../source/renderer/app/components/layout/SidebarLayout';
@@ -33,12 +32,9 @@ const topBarTestEnv = (currentTheme) => (
3332
syncPercentage={100}
3433
isProduction={false}
3534
isMainnet={false}
36-
hasTadaIcon
3735
/>
38-
<span
39-
className={classNames(topBarStyles.rectangle, topBarStyles.hasTadaIcon)}
40-
/>
41-
<DiscreetToggleTopBar hasTadaIcon />
36+
<span className={topBarStyles.rectangle} />
37+
<DiscreetToggleTopBar />
4238
<TadaButton onClick={action('onClickTadaButton')} shouldAnimate />
4339
<NewsFeedIcon
4440
onNewsFeedIconClick={action('onNewsFeedIconClick')}
@@ -63,12 +59,9 @@ const topBarStagingEnv = (currentTheme) => (
6359
syncPercentage={100}
6460
isProduction={false}
6561
isMainnet={false}
66-
hasTadaIcon
67-
/>
68-
<span
69-
className={classNames(topBarStyles.rectangle, topBarStyles.hasTadaIcon)}
7062
/>
71-
<DiscreetToggleTopBar hasTadaIcon />
63+
<span className={topBarStyles.rectangle} />
64+
<DiscreetToggleTopBar />
7265
<TadaButton onClick={action('onClickTadaButton')} shouldAnimate />
7366
<NewsFeedIcon
7467
onNewsFeedIconClick={action('onNewsFeedIconClick')}
@@ -87,17 +80,9 @@ const topBarProductionEnv = (currentTheme) => (
8780
isShelleyActivated={isShelleyTestnetTheme(currentTheme)}
8881
isAlonzoActivated={boolean('isAlonzoActivated', false)}
8982
>
90-
<NodeSyncStatusIcon
91-
isSynced
92-
syncPercentage={100}
93-
isProduction
94-
isMainnet
95-
hasTadaIcon
96-
/>
97-
<span
98-
className={classNames(topBarStyles.rectangle, topBarStyles.hasTadaIcon)}
99-
/>
100-
<DiscreetToggleTopBar hasTadaIcon />
83+
<NodeSyncStatusIcon isSynced syncPercentage={100} isProduction isMainnet />
84+
<span className={topBarStyles.rectangle} />
85+
<DiscreetToggleTopBar />
10186
<TadaButton onClick={action('onClickTadaButton')} shouldAnimate />
10287
<NewsFeedIcon
10388
onNewsFeedIconClick={action('onNewsFeedIconClick')}

storybook/stories/staking/CountdownParty.stories.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ storiesOf('Decentralization | Countdown', module)
4242
syncPercentage={100}
4343
isProduction
4444
isMainnet
45-
hasTadaIcon={isAlonzoActivated}
4645
/>
4746
{isAlonzoActivated && (
4847
<TadaButton

0 commit comments

Comments
 (0)