Summary Implement a dedicated, reusable scrolling mechanism for all console-table pages while keeping header and sidebar fixed, plus related layout improvements. Key Changes • Added `.table-scroll-card` utility class – Provides flex column layout and internal vertical scrolling – Desktop height: `calc(100vh - 110px)`; Mobile (<768 px) height: `calc(100vh - 77px)` – Hides scrollbars cross-browser (`-ms-overflow-style`, `scrollbar-width`, `::-webkit-scrollbar`) • Replaced global `.semi-card` scrolling rules with `.table-scroll-card` to avoid affecting non-table cards • Updated table components (Channels, Tokens, Users, Logs, MjLogs, TaskLogs, Redemptions) to use the new class • PageLayout – Footer is now suppressed for all `/console` routes – Confirmed only central content area scrolls; header & sidebar remain fixed • Restored hidden scrollbar rules for `.semi-layout-content` and removed unnecessary global overrides • Minor CSS cleanup & comment improvements for readability Result Console table pages now fill the viewport with smooth, internal scrolling and no visible scrollbars, while other cards and pages remain unaffected.
20 lines
683 B
JavaScript
20 lines
683 B
JavaScript
import React from 'react';
|
|
import { Empty } from '@douyinfe/semi-ui';
|
|
import { IllustrationNotFound, IllustrationNotFoundDark } from '@douyinfe/semi-illustrations';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
const NotFound = () => {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<div className="flex justify-center items-center h-screen p-8 mt-[60px]">
|
|
<Empty
|
|
image={<IllustrationNotFound style={{ width: 250, height: 250 }} />}
|
|
darkModeImage={<IllustrationNotFoundDark style={{ width: 250, height: 250 }} />}
|
|
description={t('页面未找到,请检查您的浏览器地址是否正确')}
|
|
/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default NotFound;
|