alexay7 / yomiyasu

GNU General Public License v3.0
6 stars 1 forks source link

Agregar hipervínculo a las imagenes del historial #173

Closed ahpkadota closed 7 months ago

ahpkadota commented 9 months ago

Buenas, se podría añadir un hipervínculo a las imágenes del historial (/app/history) que llevase al lector al manga en cuestión? A veces me pasa que quiero retomar una lectura desde mi lista del historial y necesito buscar el manga en el directorio en vez de hacer click directamente en la row del historial...

image

Por ejemplo, en front\src\pages\History\components\LogGrid.tsx, line 65:

        {
            field: "image",
            headerName: "",
            renderCell:(params)=><img loading="lazy" src={params.value as string} alt="" />,
            sortable:false,
            filterable:false
        }

Añadir:

        {
            field: "image",
            headerName: "",
            renderCell: (params) => (
                <a href={"https://manga.ajr.moe/reader/"+params.row.bookId}>
                    <img loading="lazy" src={params.value as string} alt="" />
                </a>
            ),
            sortable:false,
            filterable:false
        }

O algo por el estilo

Gracias de antemano, yomiyasu es god