From e295e9914b27f6ce46c29654a427c130d93ace89 Mon Sep 17 00:00:00 2001 From: cipchk Date: Sun, 31 Dec 2023 22:05:24 +0800 Subject: [PATCH] chore: fix site --- src/app/shared/components/docs/docs.component.ts | 11 ++++++++++- src/styles/_markdown.less | 6 ++++-- src/typings.d.ts | 5 ----- 3 files changed, 14 insertions(+), 8 deletions(-) delete mode 100644 src/typings.d.ts diff --git a/src/app/shared/components/docs/docs.component.ts b/src/app/shared/components/docs/docs.component.ts index 5652af188f..164a345ac3 100644 --- a/src/app/shared/components/docs/docs.component.ts +++ b/src/app/shared/components/docs/docs.component.ts @@ -18,6 +18,7 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; import { I18NService, MetaService } from '@core'; import { EditButtonComponent } from '../edit-button/edit-button.component'; +import { RouteTransferDirective } from '../route-transfer/route-transfer.directive'; declare var hljs: any; @@ -25,7 +26,15 @@ declare var hljs: any; selector: 'app-docs', templateUrl: './docs.component.html', standalone: true, - imports: [I18nPipe, NzAffixModule, NzAnchorModule, NzAlertModule, NzToolTipModule, EditButtonComponent] + imports: [ + I18nPipe, + RouteTransferDirective, + NzAffixModule, + NzAnchorModule, + NzAlertModule, + NzToolTipModule, + EditButtonComponent + ] }) export class DocsComponent implements OnInit, OnDestroy { private i18NChange$: Subscription; diff --git a/src/styles/_markdown.less b/src/styles/_markdown.less index 15ffeab60e..47f971ce8c 100644 --- a/src/styles/_markdown.less +++ b/src/styles/_markdown.less @@ -268,8 +268,6 @@ } .markdown.api-container { - overflow-x: auto; - table { table-layout: auto; min-width: 720px; @@ -325,6 +323,10 @@ hr { margin: 12px 0; } + + @media (max-width: @site-mobile) { + overflow-x: auto; + } } @demo-grid-color: #0092ff; diff --git a/src/typings.d.ts b/src/typings.d.ts deleted file mode 100644 index ef5c7bd620..0000000000 --- a/src/typings.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* SystemJS module definition */ -declare var module: NodeModule; -interface NodeModule { - id: string; -}