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>
|
<h3>Build #{latestBuild.build} · {new Date(latestBuild.time).toLocaleDateString()}:</h3>
|
||||||
<Grid elementsPerRow={gridColumns || 2} gap="8px">
|
<Grid elementsPerRow={gridColumns || 2} gap="8px">
|
||||||
{ setup &&
|
{ setup &&
|
||||||
<a href={setup} className='no-underline'>
|
<a href={setup} className='no-underline setup-button large-button'>
|
||||||
<div className='setup-button'>
|
<b><FontAwesomeIcon icon={faBook}/> Setup Instructions</b>
|
||||||
<b>Setup Instructions</b><br/>
|
|
||||||
<FontAwesomeIcon icon={faBook}/>
|
|
||||||
</div>
|
|
||||||
</a>
|
</a>
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
Object.keys(latestBuild.downloads).map((platformId, i) => {
|
Object.keys(latestBuild.downloads).map((platformId, i) => {
|
||||||
return (
|
return (
|
||||||
<a href={`https://download.geysermc.org/v2/projects/${projectId}/versions/latest/builds/latest/downloads/${platformId}`} key={i} className='no-underline'>
|
<a href={`https://download.geysermc.org/v2/projects/${projectId}/versions/latest/builds/latest/downloads/${platformId}`} key={i} className='no-underline download-button large-button'>
|
||||||
<div className='download-button'>
|
<b>{downloadsInfo[platformId]}</b>
|
||||||
<b>{downloadsInfo[platformId]}</b><br/>
|
<div>
|
||||||
<FontAwesomeIcon icon={faFileArrowDown}/> {latestBuild.downloads[platformId].name}
|
<FontAwesomeIcon icon={faFileArrowDown}/> {latestBuild.downloads[platformId].name}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</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 {
|
.download-button {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
outline: 3px solid var(--ifm-tabs-color-active);
|
outline: 3px solid var(--ifm-tabs-color-active);
|
||||||
|
|||||||
Reference in new issue
Block a user