Fix multiline download buttons looking strange

This commit is contained in:
rtm516 committed 2024-07-15 12:37:21 +01:00
1 parent 1275689ac8
commit 36c88308fd
2 files changed
+12 -8

No files matched your search

+5 -8
View File
@@ -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>
+7
View File
@@ -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);