fix mobile css, web-link
This commit is contained in:
@@ -819,12 +819,22 @@ body {
|
|||||||
.tab-header {
|
.tab-header {
|
||||||
overflow-x: auto !important;
|
overflow-x: auto !important;
|
||||||
-webkit-overflow-scrolling: touch !important;
|
-webkit-overflow-scrolling: touch !important;
|
||||||
|
width: 100% !important;
|
||||||
|
display: flex !important;
|
||||||
|
scrollbar-width: none !important; /* Firefox */
|
||||||
|
-ms-overflow-style: none !important; /* IE/Edge */
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-header::-webkit-scrollbar {
|
||||||
|
display: none !important; /* Chrome/Safari */
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-btn {
|
.tab-btn {
|
||||||
white-space: nowrap !important;
|
white-space: nowrap !important;
|
||||||
min-width: auto !important;
|
min-width: auto !important;
|
||||||
padding: 12px 16px !important;
|
padding: 12px 16px !important;
|
||||||
|
flex-shrink: 0 !important;
|
||||||
|
font-size: 13px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.json-content {
|
.json-content {
|
||||||
|
@@ -88,12 +88,24 @@ export function useUserData(adminData) {
|
|||||||
userPds = user.pds.replace('https://', '')
|
userPds = user.pds.replace('https://', '')
|
||||||
userApiConfig = getApiConfig(userPds)
|
userApiConfig = getApiConfig(userPds)
|
||||||
} else {
|
} else {
|
||||||
// Get actual PDS from handle first
|
// Always get actual PDS from describeRepo first
|
||||||
|
try {
|
||||||
|
// Try bsky.social first for most handles
|
||||||
|
const bskyPds = 'bsky.social'
|
||||||
|
userDid = await atproto.getDid(bskyPds, userHandle)
|
||||||
|
|
||||||
|
// Get the actual PDS endpoint from DID
|
||||||
const realPds = await getPdsFromHandle(userHandle)
|
const realPds = await getPdsFromHandle(userHandle)
|
||||||
userPds = realPds.replace('https://', '')
|
userPds = realPds.replace('https://', '')
|
||||||
userApiConfig = getApiConfig(realPds)
|
userApiConfig = getApiConfig(realPds)
|
||||||
|
} catch (error) {
|
||||||
|
// Fallback to syu.is if bsky.social fails
|
||||||
|
console.warn(`Failed to get PDS for ${userHandle} from bsky.social, trying syu.is:`, error)
|
||||||
|
userPds = env.pds
|
||||||
|
userApiConfig = getApiConfig(env.pds)
|
||||||
userDid = await atproto.getDid(userPds, userHandle)
|
userDid = await atproto.getDid(userPds, userHandle)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Get user's own ai.syui.log records
|
// Get user's own ai.syui.log records
|
||||||
const userRecords = await collections.getUserComments(
|
const userRecords = await collections.getUserComments(
|
||||||
|
Reference in New Issue
Block a user