feat(ui): align requests container and cards layout with downloads/history (closes #69)

This commit is contained in:
2026-05-28 17:41:59 +01:00
parent a4d398ef1b
commit af33e4ec43
3 changed files with 37 additions and 20 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ function createRequestCard(request) {
}
const card = document.createElement('div');
card.className = 'request-card';
card.className = `request-card ${request.mediaType || ''}`;
const typeIcon = document.createElement('span');
typeIcon.className = `request-type-icon ${request.mediaType || ''}`;
+4 -4
View File
File diff suppressed because one or more lines are too long
+32 -15
View File
@@ -2229,11 +2229,19 @@ body {
/* ===== Requests Tab ===== */
.requests-container {
padding: 20px;
background: var(--surface);
padding: 16px 20px;
border-radius: 8px;
box-shadow: 0 2px 4px var(--shadow);
transition: background 0.3s;
}
.requests-header {
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 12px;
flex-wrap: wrap;
}
.requests-header h2 {
@@ -2249,37 +2257,46 @@ body {
}
.requests-list {
display: grid;
gap: 12px;
overflow-x: hidden;
display: flex;
flex-direction: column;
gap: 8px;
}
.request-card {
display: flex;
align-items: center;
align-items: flex-start;
gap: 12px;
padding: 16px;
padding: 10px 14px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
border-radius: 6px;
transition: box-shadow 0.2s ease, border-color 0.2s ease;
min-width: 0;
}
.request-card.tv {
border-left: 3px solid var(--series-color);
}
.request-card.movie {
border-left: 3px solid var(--movie-color);
}
.request-card:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
border-color: var(--accent);
}
.request-type-icon {
font-size: 1.5rem;
font-size: 1.6rem;
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
width: 48px;
height: 68px;
background: var(--surface-alt);
border-radius: 8px;
border-radius: 4px;
box-shadow: 0 1px 4px var(--shadow-strong);
flex-shrink: 0;
}
@@ -2289,11 +2306,11 @@ body {
}
.request-title {
font-size: 0.95rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 4px;
overflow: hidden;
text-overflow: ellipsis;
margin: 0 0 4px;
word-break: break-word;
}
.request-meta {