Images in a document: an optional picture for dark mode

Aperta
#636 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
laravel, php
Ambito
backend, frontend

Direzione di ricerca

The payload names no files. Start by finding where the document image card stores its single file and where HtmlToDocument reads <img> sources, since both need to accept an optional dark-scheme file. Then find where the card is rendered to HTML, and check that feeds, the read API and export still get only the light file. Done means a dark <picture> source with prefers-color-scheme: dark renders, and the fallback is unchanged everywhere else.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

type/enhancement when/later

An image in a document holds one picture, so a screenshot, a diagram or a logo made in light and dark versions can only show one of them; in dark mode a light picture is a bright rectangle on a dark page.

Expected: the image card can carry an optional second file for the dark colour scheme, drawn as a <picture> with a prefers-color-scheme: dark source, falling back to the first file everywhere else (feeds, the read API, export). A plugin writing documents through HtmlToDocument can pass both, from a <picture> with that source.

🤖 Generated with Claude Code

Lingua principale
PHP
Stelle
1
Fork
1
Merge medio
1h 40m
PR unite (30g)
143

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di temecms/teme

Tutte le issue di temecms/teme

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.