Skip to content

Commit 68a5f0e

Browse files
renovate[bot]xrgzs
andauthored
chore(deps): update dependency artplayer to v5.3.0 (#205)
* chore(deps): update dependency artplayer to v5.3.0 * style: add custom styles for ArtPlayer (Close #178) Signed-off-by: MadDogOwner <[email protected]> --------- Signed-off-by: MadDogOwner <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: MadDogOwner <[email protected]>
1 parent dac1217 commit 68a5f0e

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/pages/home/previews/aliyun_video.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { AutoHeightPlugin, VideoBox } from "./video_box"
1616
import { ArtPlayerIconsSubtitle } from "~/components/icons"
1717
import { useNavigate } from "@solidjs/router"
1818
import { TiWarning } from "solid-icons/ti"
19+
import "./artplayer.css"
1920

2021
export interface Data {
2122
drive_id: string
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* Some custom styles for ArtPlayer */
2+
3+
/* Hide previous and next buttons on small screens */
4+
@media (max-width: 420px) {
5+
.art-control.art-control-previous-button,
6+
.art-control.art-control-next-button {
7+
display: none;
8+
}
9+
}
10+
11+
/* Hide time on smaller screens */
12+
@media (max-width: 340px) {
13+
.art-control.art-control-time {
14+
display: none;
15+
}
16+
}

src/pages/home/previews/video.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { currentLang } from "~/app/i18n"
1616
import { AutoHeightPlugin, VideoBox } from "./video_box"
1717
import { ArtPlayerIconsSubtitle } from "~/components/icons"
1818
import { useNavigate } from "@solidjs/router"
19+
import "./artplayer.css"
1920

2021
const Preview = () => {
2122
const { pathname, searchParams } = useRouter()

0 commit comments

Comments
 (0)