Fix width of card (#416)

This commit is contained in:
Adrian O.V
2023-08-03 00:36:43 -04:00
committed by GitHub
parent 87449f91c3
commit 69645eafd0

View File

@@ -205,7 +205,7 @@ const calculateCardsPerRow = () => {
const containerWidthInRem =
containerWidth / parseFloat(getComputedStyle(document.documentElement).fontSize)
maxInstancesPerRow.value = Math.floor((containerWidthInRem + 1) / 11)
maxProjectsPerRow.value = Math.floor((containerWidthInRem + 1) / 17)
maxProjectsPerRow.value = Math.floor((containerWidthInRem + 1) / 19)
}
onMounted(() => {
@@ -335,7 +335,7 @@ onUnmounted(() => {
.projects {
display: grid;
width: 100%;
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
grid-gap: 1rem;
.item {