fix: kachel spacing & /admin

This commit is contained in:
2026-01-31 17:12:45 +01:00
parent 96bf262884
commit be813ffbf0
6 changed files with 45 additions and 40 deletions

View File

@@ -1,45 +1,52 @@
.card-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
padding: 20px;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 32px;
padding: 32px;
}
.card-link {
text-decoration: none;
color: inherit;
display: block;
}
.item-card {
cursor: pointer;
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
height: 100%;
}
.item-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
// Custom flex container inside the header
.card-header-content {
.card-content {
display: flex;
align-items: center; // Revert to center alignment
width: 100%;
height: 64px; // Give the container a fixed height
align-items: center;
gap: 16px;
padding: 8px 0;
}
// Remove margin from the title and add padding for spacing
.card-header-content .mat-card-title {
margin: 0;
padding-left: 16px;
.card-icon {
width: 48px;
height: 48px;
border-radius: 8px;
object-fit: cover;
flex-shrink: 0;
}
.card-title {
font-size: 1.1rem;
font-weight: 500;
line-height: 1.4;
}
.default-avatar-icon {
// Vertically align the icon in the avatar space
display: flex;
justify-content: center;
align-items: center;
width: 40px;
height: 40px;
font-size: 32px;
color: #666;
}