Commit 82dc13d 1 parent 5c6de4a commit 82dc13d Copy full SHA for 82dc13d
File tree 3 files changed +11
-9
lines changed
web/src/pages/NewTransaction/Terms/Payment/GeneralTransaction/TokenAndAmount
3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import styled from "styled-components";
3
3
import { Field } from "@kleros/ui-components-library" ;
4
4
5
5
const StyledField = styled ( Field ) `
6
- width: 132px ;
6
+ width: 186px ;
7
7
input[type="number"]::-webkit-inner-spin-button,
8
8
input[type="number"]::-webkit-outer-spin-button {
9
9
-webkit-appearance: none;
@@ -15,6 +15,7 @@ const StyledField = styled(Field)`
15
15
16
16
input {
17
17
font-size: 16px;
18
+ padding-right: ${ ( { variant } ) => ( variant ? "40px" : "16px" ) } ;
18
19
}
19
20
` ;
20
21
Original file line number Diff line number Diff line change 1
1
import React , { useRef , useState } from "react" ;
2
- import styled from "styled-components" ;
2
+ import styled , { css } from "styled-components" ;
3
3
import { useClickAway } from "react-use" ;
4
4
import { Searchbar } from "@kleros/ui-components-library" ;
5
5
import { useNewTransactionContext } from "context/NewTransactionContext" ;
6
6
import { Overlay } from "components/Overlay" ;
7
7
import TokenItem from "./TokenItem" ;
8
8
import { StyledModal } from "pages/MyTransactions/Modal/StyledModal" ;
9
9
import { useFilteredTokens } from "hooks/useFilteredTokens" ;
10
+ import { landscapeStyle } from "styles/landscapeStyle" ;
11
+ import { responsiveSize } from "styles/responsiveSize" ;
10
12
11
13
const ReStyledModal = styled ( StyledModal ) `
12
14
display: flex;
13
- width: 500px;
15
+ width: ${ responsiveSize ( 320 , 500 ) } ;
16
+ ${ landscapeStyle (
17
+ ( ) => css `
18
+ width: 500px;
19
+ `
20
+ ) }
14
21
` ;
15
22
16
23
const StyledSearchbar = styled ( Searchbar ) `
Original file line number Diff line number Diff line change @@ -16,12 +16,6 @@ const Container = styled.div`
16
16
gap: 24px;
17
17
margin-bottom: ${ responsiveSize ( 16 , 0 ) } ;
18
18
flex-wrap: wrap;
19
-
20
- ${ landscapeStyle (
21
- ( ) => css `
22
- margin-left: 24px;
23
- `
24
- ) }
25
19
` ;
26
20
27
21
const TokenSelectorAndMaxBalance = styled . div `
You can’t perform that action at this time.
0 commit comments