+ {/* todo 这里在手机端没对齐 */}
{name}
{matchsmSize &&
{getrealtiveTime(pubdate * 1000)}}
@@ -35,11 +36,8 @@ export const VideoInfo: FC<
const DataP = styled("p")(({ theme }) => ({
fontSize: "15px",
- height: "40px",
- lineHeight: "20px",
+ margin: "5px 0",
[theme.breakpoints.down("sm")]: {
fontSize: "13px",
- height: "30px",
- lineHeight: "15px",
},
}));
diff --git a/src/routers/video/masonry.tsx b/src/routers/video/masonry.tsx
index ba00764..43785c5 100644
--- a/src/routers/video/masonry.tsx
+++ b/src/routers/video/masonry.tsx
@@ -76,6 +76,7 @@ export default function VideoMasonry(props: { q?: string }) {
sm: 1,
xs: 1,
}}
+ rowSpacing={2}
columns={{
lg: 10,
md: 8,
@@ -113,16 +114,8 @@ const LoadingSkeleton: FC<{ num: number }> = ({ num = 0 }) => {
))}
diff --git a/src/routers/video/video.module.less b/src/routers/video/video.module.less
index b30f277..2bf6bdd 100644
--- a/src/routers/video/video.module.less
+++ b/src/routers/video/video.module.less
@@ -6,8 +6,9 @@
.skeleton-content {
display: flex;
+ align-items: center;
- .skeleton-info {
- flex: 1;
+ &>span:last-of-type {
+ margin-left: 5px;
}
}
\ No newline at end of file
diff --git a/src/utils/hooks/match.ts b/src/utils/hooks/match.ts
index 569c53b..aade130 100644
--- a/src/utils/hooks/match.ts
+++ b/src/utils/hooks/match.ts
@@ -5,7 +5,7 @@ import { Breakpoint, useMediaQuery, useTheme } from "@mui/material";
*/
export const useScreenMatchSize = (size: Breakpoint) => {
const theme = useTheme();
- const matchSize = useMediaQuery(theme.breakpoints.up(size));
+ const matchSize = useMediaQuery(theme.breakpoints.down(size));
return matchSize;
};
//个人主页头像大小