Skip to content

Commit

Permalink
feat(playground): 调整内建通常函数文档瀑布流的断点
Browse files Browse the repository at this point in the history
让其在窗口比较宽时更紧凑(显示更多列)。
  • Loading branch information
umajho committed Oct 12, 2023
1 parent 7678b2e commit 3a4eb12
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions playground/src/components/main/documentation-pane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ export const DocumentationPane: Component = () => {
};

const breakpoints = createMasonryBreakpoints(() => [
{ query: "(min-width: 1536px)", columns: 3 }, // 2xl
{ query: "(min-width: 768px) and (max-width: 1536px)", columns: 2 }, // md
{ query: "(max-width: 768px)", columns: 1 }, // <md
{ query: "(min-width: 1536px)", columns: 4 },
{ query: "(min-width: 1152px) and (max-width: 1536px)", columns: 3 },
{ query: "(min-width: 768px) and (max-width: 1152px)", columns: 2 },
{ query: "(max-width: 768px)", columns: 1 },
]);

const RegularFunctionsTab: Component = () => {
Expand Down

0 comments on commit 3a4eb12

Please sign in to comment.