mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-22 04:30:50 +08:00
fix(usage): make api details card scrollable
This commit is contained in:
@@ -59,7 +59,7 @@ export function ApiDetailsCard({ apiStats, loading, hasPrices }: ApiDetailsCardP
|
||||
sortKey === key ? (sortDir === 'asc' ? ' ▲' : ' ▼') : '';
|
||||
|
||||
return (
|
||||
<Card title={t('usage_stats.api_details')}>
|
||||
<Card title={t('usage_stats.api_details')} className={styles.detailsFixedCard}>
|
||||
{loading ? (
|
||||
<div className={styles.hint}>{t('common.loading')}</div>
|
||||
) : sorted.length > 0 ? (
|
||||
@@ -82,6 +82,7 @@ export function ApiDetailsCard({ apiStats, loading, hasPrices }: ApiDetailsCardP
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
<div className={styles.detailsScroll}>
|
||||
<div className={styles.apiList}>
|
||||
{sorted.map((api, index) => {
|
||||
const isExpanded = expandedApis.has(api.endpoint);
|
||||
@@ -147,6 +148,7 @@ export function ApiDetailsCard({ apiStats, loading, hasPrices }: ApiDetailsCardP
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
) : (
|
||||
<div className={styles.hint}>{t('usage_stats.no_data')}</div>
|
||||
|
||||
Reference in New Issue
Block a user