Skip to content

Commit ac82ac7

Browse files
committed
Add spacers for environment option list
1 parent 5953fcd commit ac82ac7

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/renderer/components/Settings/Settings.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,15 @@
124124
overflow: hidden;
125125
text-overflow: ellipsis;
126126
font-family: inherit;
127-
min-height: 2rem;
127+
height: 40px;
128128
align-items: center;
129129
justify-items: center;
130130
flex-wrap: wrap;
131131
}
132132

133133
.Settings__environment_option_spacer {
134134
width: 100%;
135-
height: 4.5rem;
135+
height: 40px;
136136
}
137137

138138
.Settings__env_option_text {

src/renderer/components/Settings/Settings.jsx

+8-1
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,16 @@ const Settings = ({
5353
removePath={removeFromEMMEPythonEnvs}/>
5454
{ index < emmePythonEnvs.length && <PathOptionDivider/> }
5555
</div>)}))}
56-
{ emmePythonEnvs.length === 0 &&
56+
{ emmePythonEnvs.length === 1 &&
5757
(<div className="Settings__environment_option_spacer"/>)
5858
}
59+
{
60+
emmePythonEnvs.length === 0 &&
61+
(<div>
62+
<div className="Settings__environment_option_spacer"/>
63+
<div className="Settings__environment_option_spacer"/>
64+
</div>)
65+
}
5966
<button className="Settings__python-env-input-btn"
6067
onClick={()=>{
6168
dialog.showOpenDialog({

0 commit comments

Comments
 (0)