File tree Expand file tree Collapse file tree
front/src/pods/trainer/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,18 +50,20 @@ export const CopyFieldComponent: React.FC<CopyFieldProps> = props => {
5050
5151 return (
5252 < >
53- < label
54- className = { innerClasses . label }
55- htmlFor = { inputId }
56- onClick = { handleClick }
57- >
58- { labelName }
59- { open ? (
60- < ExpandLessIcon className = { innerClasses . collapseIcon } />
61- ) : (
62- < ExpandMoreIcon className = { innerClasses . collapseIcon } />
63- ) }
64- </ label >
53+ < div className = { innerClasses . labelContainer } >
54+ < label
55+ className = { innerClasses . label }
56+ htmlFor = { inputId }
57+ onClick = { handleClick }
58+ >
59+ { labelName }
60+ { open ? (
61+ < ExpandLessIcon className = { innerClasses . collapseIcon } />
62+ ) : (
63+ < ExpandMoreIcon className = { innerClasses . collapseIcon } />
64+ ) }
65+ </ label >
66+ </ div >
6567 < Collapse in = { open } timeout = "auto" unmountOnExit >
6668 < div className = { innerClasses . inputContainer } >
6769 < input
Original file line number Diff line number Diff line change @@ -9,17 +9,28 @@ export const root = css`
99 grid-row-gap : 1rem ;
1010 grid-column-gap : 1rem ;
1111` ;
12+ export const labelContainer = css `
13+ border-bottom : 1px solid rgba ( 0 , 0 , 0 , 0.12 ) ;
14+ ` ;
1215
1316export const label = css `
1417 font-family : ${ typography . fontFamily } ;
1518 font-size : 1.125rem ;
1619 color : ${ palette . text . primary } ;
1720 display : flex;
21+ justify-content : space-between;
22+ width : 50% ;
1823 cursor : pointer;
19- border-bottom : 1px solid rgba ( 0 , 0 , 0 , 0.12 ) ;
2024 & : hover {
2125 background-color : rgba ( 0 , 0 , 0 , 0.12 ) ;
2226 }
27+
28+ @media ( min-width : ${ theme . breakpoints . values . sm } px) {
29+ width : 30% ;
30+ }
31+ @media ( min-width : ${ theme . breakpoints . values . lg } px) {
32+ width : 25% ;
33+ }
2334` ;
2435
2536export const collapseIcon = css `
You can’t perform that action at this time.
0 commit comments