fix: Transparent thumbnails show document behind in hover previews
This commit is contained in:
@@ -56,7 +56,7 @@ export const CardContent = styled.div`
|
|||||||
// &:after — gradient mask for overflow text
|
// &:after — gradient mask for overflow text
|
||||||
export const Card = styled.div<{ fadeOut?: boolean; $borderRadius?: string }>`
|
export const Card = styled.div<{ fadeOut?: boolean; $borderRadius?: string }>`
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
background: ${(props) => props.theme.menuBackground};
|
background: ${s("menuBackground")};
|
||||||
padding: ${CARD_PADDING}px;
|
padding: ${CARD_PADDING}px;
|
||||||
width: ${CARD_WIDTH}px;
|
width: ${CARD_WIDTH}px;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
|
import { s } from "@shared/styles";
|
||||||
import Flex from "~/components/Flex";
|
import Flex from "~/components/Flex";
|
||||||
import {
|
import {
|
||||||
Preview,
|
Preview,
|
||||||
@@ -44,6 +45,7 @@ const Thumbnail = styled.img`
|
|||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
max-width: ${CARD_WIDTH}px;
|
max-width: ${CARD_WIDTH}px;
|
||||||
height: ${THUMBNAIL_HEIGHT}px;
|
height: ${THUMBNAIL_HEIGHT}px;
|
||||||
|
background: ${s("menuBackground")};
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export default HoverPreviewLink;
|
export default HoverPreviewLink;
|
||||||
|
|||||||
Reference in New Issue
Block a user