Commit 0fe25cf 1 parent cd31c24 commit 0fe25cf Copy full SHA for 0fe25cf
File tree 4 files changed +16
-5
lines changed
4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 23
23
"csp" : {
24
24
"default-src" : " 'self' customprotocol: asset:" ,
25
25
"connect-src" : " ipc: http://ipc.localhost" ,
26
- "img-src" : " 'self' asset: http://asset.localhost blob: data:" ,
26
+ "img-src" : " 'self' asset: http://asset.localhost blob: data: tauri: http://tauri.localhost " ,
27
27
"style-src" : " 'unsafe-inline' 'self'"
28
28
},
29
29
"assetProtocol" : {
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export default function SpacePage() {
56
56
57
57
return (
58
58
< >
59
- < section className = 'mx-auto max-w-5xl p-4' >
59
+ < section className = 'mx-auto max-w-7xl p-4' >
60
60
< OwnerCard />
61
61
62
62
< header className = 'mx-auto my-10 flex max-w-sm space-x-2' >
@@ -85,7 +85,7 @@ export default function SpacePage() {
85
85
{ listData ?. records ?. map ( ( v ) => (
86
86
< li
87
87
key = { v . bvid }
88
- className = 'w-full sm:w-1/2 lg:w-1/3 xl:w-1/4 2xl:w-1/6'
88
+ className = '3xl:w-1/8 3xl:1/8 w-full sm:w-1/2 lg:w-1/3 xl:w-1/4 2xl:w-1/6'
89
89
>
90
90
< BVListItem
91
91
data = { v }
Original file line number Diff line number Diff line change
1
+ .videos-container {
2
+ max-width : 1080px ;
3
+ }
4
+
5
+ .videos-list {
6
+ @media screen and (max-width : 768px ) {
7
+ }
8
+ }
Original file line number Diff line number Diff line change @@ -4,8 +4,11 @@ import { useQuery } from '@tanstack/react-query'
4
4
5
5
function isNetworkUrl ( url ?: string ) {
6
6
if ( ! url ) return false
7
- const regex = / ^ (? ! h t t p s ? : \/ \/ a s s e t $ ) h t t p s ? : \/ \/ /
8
- return regex . test ( url )
7
+ // const regex = /^(?!https?:\/\/asset$)https?:\/\//
8
+ // return regex.test(url)
9
+ return (
10
+ url . startsWith ( 'http' ) && ! url . includes ( 'asset' ) && ! url . includes ( 'tauri' )
11
+ )
9
12
}
10
13
11
14
function isVailImageUrl ( url ?: string ) {
You canโt perform that action at this time.
0 commit comments