mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 02:45:39 -04:00
Polish mobile layouts, extract ExpandableText, fix image sizing
- Stack title-hero poster/metadata vertically on mobile (flex-col md:flex-row), switch backdrop tall breakpoint from sm to md - Extract bio expand/collapse logic into reusable ExpandableText component; use it in PersonHero and TitleHero - Fix ContinueWatchingCard image to use fill + sizes instead of fixed width/height to avoid layout shift - Add fade-out gradient on genre chip scrollbar edge on mobile - Show scaled-down ambient glow on mobile instead of hiding it entirely - Humanize knownForDepartment labels (Acting→Actor, Directing→Director, etc.) - Change cast member name from truncate to line-clamp-2 for wrapping - Hide tooltip arrow via [&>:last-child]:hidden instead of color-matching it - Apply safe-area-inset padding to HeroBanner content on notched devices
This commit is contained in:
@@ -91,7 +91,7 @@ export async function getSonarrList(
|
||||
const result: { TvdbId: number; Title: string }[] = [];
|
||||
|
||||
for (const row of rows) {
|
||||
let tvdbId = row.tvdbId;
|
||||
let { tvdbId } = row;
|
||||
|
||||
if (tvdbId == null) {
|
||||
try {
|
||||
|
||||
@@ -86,7 +86,7 @@ export function logEpisodeWatch(
|
||||
.where(eq(seasons.id, ep.seasonId))
|
||||
.get();
|
||||
if (!season) return;
|
||||
const titleId = season.titleId;
|
||||
const { titleId } = season;
|
||||
|
||||
// Auto-set status to in_progress if not set
|
||||
const existing = db
|
||||
@@ -141,7 +141,7 @@ export function logEpisodeWatchBatch(
|
||||
.all();
|
||||
if (seasonRows.length === 0) return;
|
||||
|
||||
const titleId = seasonRows[0].titleId;
|
||||
const { titleId } = seasonRows[0];
|
||||
|
||||
// Set status to in_progress if not already set
|
||||
const existing = tx
|
||||
|
||||
@@ -178,8 +178,7 @@ async function resolveEpisode(event: WebhookEvent): Promise<{
|
||||
seasonNumber: number;
|
||||
episodeNumber: number;
|
||||
} | null> {
|
||||
const seasonNumber = event.seasonNumber;
|
||||
const episodeNumber = event.episodeNumber;
|
||||
const { seasonNumber, episodeNumber } = event;
|
||||
if (seasonNumber == null || episodeNumber == null) return null;
|
||||
|
||||
// Strategy 1: Use IMDB ID to find the episode and get show_id
|
||||
|
||||
Reference in New Issue
Block a user