fix: resolve UI issues (image aspect ratio, footer padding, logo size, animations, hydration)
This commit is contained in:
1 parent
6e25739e6e
commit
fcd2a08cd0
2 files changed
+176
-4
No files matched your search
@@ -268,7 +268,7 @@ export function BillingSelection({
|
|||||||
<tr key={download.id}>
|
<tr key={download.id}>
|
||||||
<td>{download.assetId}</td>
|
<td>{download.assetId}</td>
|
||||||
<td>
|
<td>
|
||||||
<time dateTime={download.authorizedAt.toISOString()}>
|
<time dateTime={download.authorizedAt.toISOString()} suppressHydrationWarning>
|
||||||
{download.authorizedAt.toLocaleDateString("de-DE")}
|
{download.authorizedAt.toLocaleDateString("de-DE")}
|
||||||
</time>
|
</time>
|
||||||
</td>
|
</td>
|
||||||
@@ -327,7 +327,7 @@ export function BillingSelection({
|
|||||||
<span>Status: {REPORT_STATUS_LABELS[report.status] ?? report.status}</span>
|
<span>Status: {REPORT_STATUS_LABELS[report.status] ?? report.status}</span>
|
||||||
<span>
|
<span>
|
||||||
Erstellt am:{" "}
|
Erstellt am:{" "}
|
||||||
<time dateTime={report.createdAt.toISOString()}>
|
<time dateTime={report.createdAt.toISOString()} suppressHydrationWarning>
|
||||||
{report.createdAt.toLocaleDateString("de-DE")}
|
{report.createdAt.toLocaleDateString("de-DE")}
|
||||||
</time>
|
</time>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
+174
-2
@@ -31,6 +31,7 @@ body {
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
transition: all 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
:focus-visible {
|
:focus-visible {
|
||||||
@@ -278,12 +279,17 @@ a {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 0.75rem 1.25rem;
|
gap: 0.75rem 1.25rem;
|
||||||
padding: 1rem 0;
|
padding: 1.5rem clamp(1.25rem, 4vw, 5rem);
|
||||||
border-top: 1px solid var(--line);
|
border-top: 1px solid var(--line);
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
letter-spacing: 0.06em;
|
letter-spacing: 0.06em;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.legal-footer a:hover {
|
||||||
|
color: var(--ink);
|
||||||
}
|
}
|
||||||
|
|
||||||
.audit-filters {
|
.audit-filters {
|
||||||
@@ -382,9 +388,14 @@ a {
|
|||||||
|
|
||||||
.brand-logo {
|
.brand-logo {
|
||||||
display: block;
|
display: block;
|
||||||
width: min(14rem, 48vw);
|
width: min(10rem, 35vw);
|
||||||
height: auto;
|
height: auto;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
|
transition: opacity 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-logo:hover {
|
||||||
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.portal-masthead-meta,
|
.portal-masthead-meta,
|
||||||
@@ -1900,3 +1911,164 @@ a {
|
|||||||
border-color: var(--ink);
|
border-color: var(--ink);
|
||||||
color: var(--ink);
|
color: var(--ink);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ------------------------------------------------------------------ */
|
||||||
|
/* Admin Album Grid */
|
||||||
|
/* ------------------------------------------------------------------ */
|
||||||
|
|
||||||
|
.album-grid-search {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 30rem;
|
||||||
|
padding: 0.625rem 0.875rem;
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
font-size: 0.875rem;
|
||||||
|
font-family: inherit;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-grid-search:focus {
|
||||||
|
outline: 2px solid var(--ink);
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
|
||||||
|
gap: 1.5rem;
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
background: var(--paper);
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card[data-granted="true"] {
|
||||||
|
border-left: 3px solid var(--ink);
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card-image-container {
|
||||||
|
width: 100%;
|
||||||
|
aspect-ratio: 4 / 3;
|
||||||
|
background: var(--contact-sheet);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card-image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: contain; /* Fix for portrait images getting cut off */
|
||||||
|
background: var(--contact-sheet);
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card:hover .album-card-image {
|
||||||
|
transform: scale(1.02);
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card-placeholder {
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
height: 100%;
|
||||||
|
color: var(--metadata);
|
||||||
|
font-size: 0.75rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.05em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card-body {
|
||||||
|
padding: 1rem;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card-name {
|
||||||
|
margin: 0 0 0.25rem 0;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
font-weight: 600;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card-count {
|
||||||
|
margin: 0 0 0.75rem 0;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
color: var(--muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card-status {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.375rem;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
font-weight: 500;
|
||||||
|
margin: 0 0 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card-status::before {
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: var(--line);
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card-status--granted::before {
|
||||||
|
background: #10b981; /* Green dot for granted */
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card-action {
|
||||||
|
width: 100%;
|
||||||
|
padding: 0.5rem;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
font-weight: 600;
|
||||||
|
font-family: inherit;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
margin-top: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card-action--grant {
|
||||||
|
background: var(--ink);
|
||||||
|
color: var(--paper);
|
||||||
|
border: 1px solid var(--ink);
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card-action--grant:hover:not(:disabled) {
|
||||||
|
background: var(--graphite);
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card-action--revoke {
|
||||||
|
background: transparent;
|
||||||
|
color: var(--metadata);
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card-action--revoke:hover:not(:disabled) {
|
||||||
|
border-color: var(--ink);
|
||||||
|
color: var(--ink);
|
||||||
|
}
|
||||||
|
|
||||||
|
.album-card-action:disabled {
|
||||||
|
opacity: 0.5;
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user