You've already forked AstralRinth
forked from didirus/AstralRinth
Fix width of card (#416)
This commit is contained in:
@@ -205,7 +205,7 @@ const calculateCardsPerRow = () => {
|
|||||||
const containerWidthInRem =
|
const containerWidthInRem =
|
||||||
containerWidth / parseFloat(getComputedStyle(document.documentElement).fontSize)
|
containerWidth / parseFloat(getComputedStyle(document.documentElement).fontSize)
|
||||||
maxInstancesPerRow.value = Math.floor((containerWidthInRem + 1) / 11)
|
maxInstancesPerRow.value = Math.floor((containerWidthInRem + 1) / 11)
|
||||||
maxProjectsPerRow.value = Math.floor((containerWidthInRem + 1) / 17)
|
maxProjectsPerRow.value = Math.floor((containerWidthInRem + 1) / 19)
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
@@ -335,7 +335,7 @@ onUnmounted(() => {
|
|||||||
.projects {
|
.projects {
|
||||||
display: grid;
|
display: grid;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
|
||||||
grid-gap: 1rem;
|
grid-gap: 1rem;
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
|
|||||||
Reference in New Issue
Block a user