Skip to content

Commit

Permalink
Adjust SplitRowsView, fix wallet name size
Browse files Browse the repository at this point in the history
- Fix allowing the wallet name to take up as much space as possible.
  • Loading branch information
Jon-edge committed Jan 11, 2024
1 parent d8de91c commit b7eff95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/components/ui4/CurrencyViewUi4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ const getStyles = cacheStyles((theme: Theme) => ({
flex: 1
},
primaryText: {
fontSize: theme.rem(0.75)
fontSize: theme.rem(0.75),
marginRight: theme.rem(0.25)
},
secondaryText: {
fontSize: theme.rem(0.75),
Expand Down
13 changes: 5 additions & 8 deletions src/components/ui4/SplitRowsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface SplitRow {

/**
* A view representing rows of data split on the left and right edges of the
* line. Neither side will exceed 50% of the width of the view.
* line
**/
export const SplitRowsView = (props: Props) => {
const { children, marginRem } = props
Expand All @@ -45,20 +45,17 @@ export const SplitRowsView = (props: Props) => {
const getStyles = cacheStyles((theme: Theme) => ({
container: {
flexDirection: 'column',
justifyContent: 'space-between',
flex: 1
justifyContent: 'space-between'
},
leftColumn: {
flexDirection: 'column',
justifyContent: 'flex-start',
flex: 1,
maxWidth: '50%'
justifyContent: 'flex-start'
},
rightColumn: {
flexDirection: 'column',
alignItems: 'flex-end',
flex: 1,
maxWidth: '50%'
flexGrow: 1,
flexShrink: 1
},
row: {
flexDirection: 'row',
Expand Down

0 comments on commit b7eff95

Please sign in to comment.