Skip to content

Commit

Permalink
Merge pull request #874 from alexstotsky/summary-pos-web
Browse files Browse the repository at this point in the history
(improvement) Add active positions to the web summary page
  • Loading branch information
ezewer authored Oct 11, 2024
2 parents 58cbea5 + 1c6b8ef commit fd629ab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 1 addition & 2 deletions public/locales/en/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,7 @@
"title": "Active Positions",
"derivative": "Derivative",
"margin": "Margin",
"position": "Position",
"amount": "Amount"
"position": "Position"
}
},
"symbols": {
Expand Down
2 changes: 2 additions & 0 deletions src/components/AccountSummary/AccountSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Card, Elevation } from '@blueprintjs/core'
import { get, isEmpty } from '@bitfinex/lib-js-util-base'

import SectionHeader from 'ui/SectionHeader'
import Positions from 'components/AppSummary/AppSummary.positions'

import Leo from './AccountSummary.leo'
import Fees from './AccountSummary.fees'
Expand Down Expand Up @@ -79,6 +80,7 @@ class AccountSummary extends PureComponent {
title='accountsummary.title'
/>
<div className='section-account-summary-data'>
<Positions />
<Volume
t={t}
isNoData={isNoData}
Expand Down
9 changes: 9 additions & 0 deletions src/components/AccountSummary/_AccountSummary.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
align-items: flex-end;
justify-content: space-between;

.full-width-item {
.app-summary-item-title {
font-size: 15px;
font-weight: 400;
margin-bottom: 5px;
color: var(--activeColor);
}
}

&-item {
width: 49%;
min-width: 400px;
Expand Down

0 comments on commit fd629ab

Please sign in to comment.