Fix multiline download buttons looking strange
This commit is contained in:
2 files changed
+12
-8
No files matched your search
@@ -77,19 +77,16 @@ export const ProjectDownload: React.FC<ProjectDownloadProps> = ({ projectId, des
|
||||
<h3>Build #{latestBuild.build} · {new Date(latestBuild.time).toLocaleDateString()}:</h3>
|
||||
<Grid elementsPerRow={gridColumns || 2} gap="8px">
|
||||
{ setup &&
|
||||
<a href={setup} className='no-underline'>
|
||||
<div className='setup-button'>
|
||||
<b>Setup Instructions</b><br/>
|
||||
<FontAwesomeIcon icon={faBook}/>
|
||||
</div>
|
||||
<a href={setup} className='no-underline setup-button large-button'>
|
||||
<b><FontAwesomeIcon icon={faBook}/> Setup Instructions</b>
|
||||
</a>
|
||||
}
|
||||
{
|
||||
Object.keys(latestBuild.downloads).map((platformId, i) => {
|
||||
return (
|
||||
<a href={`https://download.geysermc.org/v2/projects/${projectId}/versions/latest/builds/latest/downloads/${platformId}`} key={i} className='no-underline'>
|
||||
<div className='download-button'>
|
||||
<b>{downloadsInfo[platformId]}</b><br/>
|
||||
<a href={`https://download.geysermc.org/v2/projects/${projectId}/versions/latest/builds/latest/downloads/${platformId}`} key={i} className='no-underline download-button large-button'>
|
||||
<b>{downloadsInfo[platformId]}</b>
|
||||
<div>
|
||||
<FontAwesomeIcon icon={faFileArrowDown}/> {latestBuild.downloads[platformId].name}
|
||||
</div>
|
||||
</a>
|
||||
|
||||
@@ -298,6 +298,13 @@ html[data-theme='dark'] {
|
||||
}
|
||||
}
|
||||
|
||||
.large-button {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: calc(2lh + 20px);
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.download-button {
|
||||
width: 100%;
|
||||
outline: 3px solid var(--ifm-tabs-color-active);
|
||||
|
||||
Reference in new issue
Block a user