Skip to content

Commit 6679223

Browse files
authored
Merge branch 'master' into TerminalStyleImprovements
2 parents f302e67 + d456c2d commit 6679223

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.remixui_home_text {
22
cursor: pointer;
3+
font-size: 0.8rem;
34
font-weight: normal;
45
max-width: 300px;
56
}

libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
125125
}
126126

127127
const createNewFile = async () => {
128+
plugin.verticalIcons.select('filePanel')
128129
await plugin.call('filePanel', 'createNewFile')
129130
}
130131

@@ -261,21 +262,22 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
261262
<h4>File</h4>
262263
<p className="mb-1">
263264
<i className="mr-2 far fa-file"></i>
264-
<span className="ml-1 mb-1 remixui_home_text" onClick={() => createNewFile()}>New File</span>
265+
<label className="ml-1 mb-1 remixui_home_text" onClick={() => createNewFile()}>New File</label>
265266
</p>
266267
<p className="mb-1">
267268
<i className="mr-2 far fa-file-alt"></i>
268-
<span className="ml-1 remixui_home_labelIt remixui_home_bigLabelSize remixui_home_text">
269+
<label className="ml-1 remixui_home_labelIt remixui_home_bigLabelSize} remixui_home_text" htmlFor="openFileInput">
269270
Open Files
270-
<input title="open file" type="file" onChange={(event) => {
271-
event.stopPropagation()
272-
uploadFile(event.target)
273-
}} multiple />
274-
</span>
271+
</label>
272+
<input title="open file" type="file" id="openFileInput" onChange={(event) => {
273+
event.stopPropagation()
274+
plugin.verticalIcons.select('filePanel')
275+
uploadFile(event.target)
276+
}} multiple />
275277
</p>
276278
<p className="mb-1">
277279
<i className="mr-1 far fa-hdd"></i>
278-
<span className="ml-1 remixui_home_text" onClick={() => connectToLocalhost()}>Connect to Localhost</span>
280+
<label className="ml-1 remixui_home_text" onClick={() => connectToLocalhost()}>Connect to Localhost</label>
279281
</p>
280282
<p className="mt-3 mb-0"><label>LOAD FROM:</label></p>
281283
<div className="btn-group">
@@ -301,7 +303,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
301303
</p>
302304
<p className="mb-1">
303305
<i className="mr-2 fab fa-ethereum remixui_home_image"></i>
304-
<span className="remixui_home_text" onClick={() => switchToPreviousVersion()}>Old experience</span>
306+
<label className="remixui_home_text" onClick={() => switchToPreviousVersion()}>Old experience</label>
305307
</p>
306308
</div>
307309
</div>

0 commit comments

Comments
 (0)