Skip to content

Commit

Permalink
frontend/new: ongoing experiment with button layout styling
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldschilly committed Oct 16, 2024
1 parent f3bdfd6 commit 022b806
Show file tree
Hide file tree
Showing 4 changed files with 333 additions and 289 deletions.
8 changes: 4 additions & 4 deletions src/packages/frontend/project/new/add-ai-gen-btn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
* License: MS-RSL – see LICENSE.md for details
*/

import { Col, Flex } from "antd";
import { Col, Flex, Space } from "antd";

import { AIGenerateDocumentButton } from "@cocalc/frontend/project/page/home-page/ai-generate-document";
import { Ext } from "@cocalc/frontend/project/page/home-page/ai-generate-examples";
import { AIGenerateDocumentButton } from "../page/home-page/ai-generate-document";

interface Props {
btn: JSX.Element;
Expand Down Expand Up @@ -38,10 +38,10 @@ export function AiDocGenerateBtn({ btn, grid, ext, filename, mode }: Props) {
);
} else {
return (
<Col sm={sm} md={md} key={`with-ai-${ext}`}>
<Space direction="vertical">
{btn}
<AIGenerateDocumentButton mode="full" ext={ext} filename={filename} />
</Col>
</Space>
);
}
}
Loading

0 comments on commit 022b806

Please sign in to comment.