Hover images/videos for all media?
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 38/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- sqlite, typescript
- Área
- backend, frontend, full-stack
Línea de trabajo
Start by tracing the existing image and video node schemas, their migration path, and the media editing tools described in the proposal. Then map how canvas rendering handles linked cards, hover states, and media loading. Done means hover media can be stored, edited, and displayed as proposed; the text and alt text questions still need decisions.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
Linked images often need a different look on hover. The footer's social icons should turn purple, for example. Today a hover can only fade the image. Workarounds fall short:
- Inline SVG would allow recoloring, but images are rendered as
<img>. - A CSS mask over the image works for single-color icons, but turns colorful SVGs into flat silhouettes and badges such as App Store buttons into solid rectangles.
A sustainable solution lets editors pick a separate image for the hover state.
Proposal
Data
Give the image and video node types an optional hover image, instead of adding a hover_media property to every node type that has media. That is one schema change and one migration, and every media property supports hover at once: media buttons, cards, galleries, features, figures.
- No hover image is the default, stored as an empty
src, so existing content is unchanged. - The hover image follows the single-owner rule like any other node. Copying or duplicating media copies its hover image with a fresh id.
Viewing
- The hover image fades in over the main image, in the same box and at the same size.
- The hover starts at the nearest link or card, not only at the image: hovering anywhere on a linked card swaps its image. Unlinked images swap when the image itself is hovered.
- Hover images load after the page, or on first hover, so they don't double image downloads.
- If proportions differ, the hover image adapts to the main image's box.
Editing: a hover layer
A Main / Hover toggle in the toolbar, with a keyboard shortcut, switches the whole canvas between main and hover images. All hover images can then be placed and reviewed side by side, in context.
- Always visible: the mode shows a clear frame or banner, such as "Editing hover images", for as long as it is on, so nobody replaces a main image by mistake.
- Media only: in hover mode only media can be edited. Text, layout, and structure stay locked.
- Empty slots: media without a hover image shows the main image dimmed, with an "Add hover image" hint, instead of a checkerboard. The page keeps its look, and filled slots stand out.
- Same tools: the hover image is uploaded, replaced, and cropped with the existing media tools.
Considerations
- Touch devices have no hover. Hover images are an enhancement only and must never be the only place for important content.
- Mode confusion is the main risk of a canvas-wide layer. The mode indicator and the media-only lock are there to reduce it.
- Alternative considered: a hover slot shown beside each selected node. It needs no mode, but you can't review all hover states together, and every node type would need its own UI.
Open questions
- Should text be editable in hover mode, or stay locked as proposed?
- Should the toggle appear only when the page has hoverable media?
- Do hover images need their own alt text, or do they always share the main image's?
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.8k
- Forks
- 148
- Merge medio
- 2 h 47 min
- PR fusionados (30 d)
- 13
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de michael/editable
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
michael/editable#181 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 52/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 58/100
Los mantenedores suelen responder en 1 día
Todos los issues de michael/editable
Issues similares
-
bug data-types
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
ClickHouse/clickhouse-js#1293 ·
Los mantenedores suelen responder en 1 día
-
area: middleware enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
agent/quality testing
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
juspay/agent-distro#203 ·
Los mantenedores suelen responder en 1 día