@@ -167,7 +167,7 @@ function HomeTabFile({ plugin }: HomeTabFileProps) {
167167 </ label >
168168 < div className = "d-flex flex-row flex-wrap" >
169169 < CustomTooltip placement = { 'top' } tooltipId = "overlay-tooltip" tooltipClasses = "text-nowrap" tooltipText = { < FormattedMessage id = "home.newFileTooltip" /> } tooltipTextClasses = "border bg-light text-dark p-1 pr-3" >
170- < button className = "btn btn-primary text-nowrap p-2 mr-2 border my-1" data-id = "homeTabNewFile" style = { { width : 'fit-content' } } onClick = { async ( ) => {
170+ < button className = "btn btn-primary text-nowrap p-2 mr-2 border my-1 mb-2 " data-id = "homeTabNewFile" style = { { width : 'fit-content' } } onClick = { async ( ) => {
171171 _paq . push ( [ 'trackEvent' , 'hometab' , 'filesSection' , 'newFile' ] )
172172 await plugin . call ( 'menuicons' , 'select' , 'filePanel' )
173173 await plugin . call ( 'filePanel' , 'createNewFile' )
@@ -178,7 +178,7 @@ function HomeTabFile({ plugin }: HomeTabFileProps) {
178178 </ CustomTooltip >
179179 < CustomTooltip placement = { 'top' } tooltipId = "overlay-tooltip" tooltipClasses = "text-nowrap" tooltipText = { < FormattedMessage id = "home.openFileTooltip" /> } tooltipTextClasses = "border bg-light text-dark p-1 pr-3" >
180180 < span >
181- < label className = "btn text-nowrap p-2 mr-2 border my-1" style = { { width : 'fit-content' , cursor : 'pointer' } } htmlFor = "openFileInput" >
181+ < label className = "btn text-nowrap p-2 mr-2 border my-1 mb-2 " style = { { width : 'fit-content' , cursor : 'pointer' } } htmlFor = "openFileInput" >
182182 < i className = "far fa-upload pl-1 pr-2" > </ i >
183183 < FormattedMessage id = "home.openFile" />
184184 </ label >
@@ -197,13 +197,23 @@ function HomeTabFile({ plugin }: HomeTabFileProps) {
197197 </ CustomTooltip >
198198 < CustomTooltip placement = { 'top' } tooltipId = "overlay-tooltip" tooltipClasses = "text-nowrap" tooltipText = { < FormattedMessage id = "home.gistTooltip" /> } tooltipTextClasses = "border bg-light text-dark p-1 pr-3"
199199 >
200- < button className = "btn text-nowrap p-2 mr-2 border my-1" data-id = "landingPageImportFromGistButton" onClick = { ( ) => importFromGist ( ) } >
200+ < button className = "btn text-nowrap p-2 mr-2 border my-1 mb-2 " data-id = "landingPageImportFromGistButton" onClick = { ( ) => importFromGist ( ) } >
201201 < i className = "fab fa-github pl-1 pr-2" > </ i >
202- Gist
202+ Gist
203+ </ button >
204+ </ CustomTooltip >
205+ < CustomTooltip placement = { 'top' } tooltipId = "overlay-tooltip" tooltipClasses = "text-nowrap" tooltipText = { < FormattedMessage id = "home.gitCloneTooltip" /> } tooltipTextClasses = "border bg-light text-dark p-1 pr-3"
206+ >
207+ < button className = "btn text-nowrap p-2 mr-2 border my-1 mb-2" data-id = "landingPageImportFromGitHubButton" onClick = { async ( ) => {
208+ _paq . push ( [ 'trackEvent' , 'hometab' , 'filesSection' , 'Git Clone' ] )
209+ await plugin . call ( 'filePanel' , 'clone' )
210+ } } >
211+ < i className = "fab fa-github pl-1 pr-2" > </ i >
212+ Git Clone
203213 </ button >
204214 </ CustomTooltip >
205215 < CustomTooltip placement = { 'top' } tooltipId = "overlay-tooltip" tooltipClasses = "text-nowrap" tooltipText = { < FormattedMessage id = "home.connectToLocalhost" /> } tooltipTextClasses = "border bg-light text-dark p-1 pr-3" >
206- < button className = "btn text-nowrap p-2 border my-1" onClick = { ( ) => connectToLocalhost ( ) } >
216+ < button className = "btn text-nowrap p-2 border my-1 mb-2 " onClick = { ( ) => connectToLocalhost ( ) } >
207217 < i className = "fa-regular fa-desktop pr-2" > </ i >
208218 < FormattedMessage id = "home.accessFileSystem" />
209219 </ button >
0 commit comments