Commit aa239fa 1 parent 6a621c3 commit aa239fa Copy full SHA for aa239fa
File tree 2 files changed +11
-3
lines changed
src/renderer/components/Settings
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 43
43
letter-spacing : -0.6px ;
44
44
color : # 333333 ;
45
45
order : 0 ;
46
- margin-bottom : 10 px ;
46
+ margin-bottom : 1 rem ;
47
47
}
48
48
49
49
.Settings__dialog-input-group {
130
130
flex-wrap : wrap;
131
131
}
132
132
133
+ .Settings__environment_option_spacer {
134
+ width : 100% ;
135
+ height : 3rem ;
136
+ }
137
+
133
138
.Settings__env_option_text {
134
139
width : 80% ;
135
140
font-weight : 500 ;
Original file line number Diff line number Diff line change @@ -44,14 +44,17 @@ const Settings = ({
44
44
< div className = "Settings__dialog-heading" > Projektin asetukset</ div >
45
45
46
46
< div className = "Settings__dialog-input-group" >
47
- < span className = "Settings__pseudo-label" > Käytettävät Python-ympäristöt:</ span >
47
+ < span className = "Settings__pseudo-label" > { emmePythonEnvs . length > 0 ? " Käytettävät Python-ympäristöt:" : "Ei python-ympäristöjä käytettävissä." } </ span >
48
48
{ Array . isArray ( emmePythonEnvs ) && emmePythonEnvs . length > 0 && ( emmePythonEnvs . map ( ( env , index ) => { return (
49
49
< div key = { index } >
50
50
< EnvironmentOption envPath = { env } isSelected = { emmePythonPath === env }
51
- setPath = { setEMMEPythonPath }
51
+ setPath = { setEMMEPythonPath }
52
52
removePath = { removeFromEMMEPythonEnvs } />
53
53
{ index < emmePythonEnvs . length && < PathOptionDivider /> }
54
54
</ div > ) } ) ) }
55
+ { emmePythonEnvs . length === 0 &&
56
+ ( < div className = "Settings__environment_option_spacer" /> )
57
+ }
55
58
< button className = "Settings__python-env-input-btn"
56
59
onClick = { ( ) => {
57
60
dialog . showOpenDialog ( {
You can’t perform that action at this time.
0 commit comments