Skip to content

Commit 0fe25cf

Browse files
committed
๐Ÿž fix(้ข„่งˆ): ๅ›พ็‰‡ๅœฐๅ€้—ฎ้ข˜
1 parent cd31c24 commit 0fe25cf

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

โ€Žsrc-tauri/tauri.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"csp": {
2424
"default-src": "'self' customprotocol: asset:",
2525
"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",
2727
"style-src": "'unsafe-inline' 'self'"
2828
},
2929
"assetProtocol": {

โ€Žsrc/pages/root/home/space/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function SpacePage() {
5656

5757
return (
5858
<>
59-
<section className='mx-auto max-w-5xl p-4'>
59+
<section className='mx-auto max-w-7xl p-4'>
6060
<OwnerCard />
6161

6262
<header className='mx-auto my-10 flex max-w-sm space-x-2'>
@@ -85,7 +85,7 @@ export default function SpacePage() {
8585
{listData?.records?.map((v) => (
8686
<li
8787
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'
8989
>
9090
<BVListItem
9191
data={v}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.videos-container {
2+
max-width: 1080px;
3+
}
4+
5+
.videos-list {
6+
@media screen and (max-width: 768px) {
7+
}
8+
}

โ€Žsrc/ui/ImageView.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ import { useQuery } from '@tanstack/react-query'
44

55
function isNetworkUrl(url?: string) {
66
if (!url) return false
7-
const regex = /^(?!https?:\/\/asset$)https?:\/\//
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+
)
912
}
1013

1114
function isVailImageUrl(url?: string) {

0 commit comments

Comments
ย (0)