Skip to content

Commit

Permalink
feat: 更新Markdown编辑器的样式,调整高度并优化可访问性
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Feb 18, 2025
1 parent 3d986d1 commit e81b3dc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<div
class="ant-md-editor-toolbar-item ant-md-editor-toolbar-item-min-plus-icon"
role="button"
tabindex="-1"
>
<span
aria-label="plus-circle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3222,7 +3222,7 @@
</div>
<div
class="markdown-editor ant-md-editor ant-md-editor-edit ant-md-editor-report"
style="width: 80%; height: calc(100vh - 400px); display: flex; flex-direction: column; max-height: 100%; margin: 0px auto; border: 1px solid #e8e8e8;"
style="width: 80%; height: 80vh; display: flex; flex-direction: column; max-height: 100%; margin: 0px auto; border: 1px solid #e8e8e8;"
>
<div
class="md-editor-toolbar-container"
Expand Down
8 changes: 0 additions & 8 deletions tests/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ globalThis.document = window.document;
global.window.scrollTo = vi.fn();
Element.prototype.scrollTo = vi.fn();

vi.mock('lodash-es', () => {
return {
map: (arr: any[], fn: any) => arr.map(fn),
filter: (arr: any[], fn: any) => arr.filter(fn),
forEach: (arr: any[], fn: any) => arr.forEach(fn),
};
});

Object.defineProperty(global, 'navigator', {
value: {
userAgent: 'node.js',
Expand Down

1 comment on commit e81b3dc

@vercel
Copy link

@vercel vercel bot commented on e81b3dc Feb 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.