Skip to content

Commit 9aa2605

Browse files
committed
feat: better layout for operation set card
1 parent 7ada323 commit 9aa2605

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/components/OperationCard.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ export const OperationCard = ({ operation }: { operation: Operation }) => {
181181
</div>
182182
<div className="flex md:flex-row flex-col gap-4">
183183
<div className="text-gray-700 leading-normal md:w-1/2">
184-
{/* <div className="text-sm text-zinc-600 mb-2 font-bold">作业描述</div> */}
185184
<Paragraphs
186185
content={operation.parsedContent.doc.details}
187186
limitHeight={21 * 13.5} // 13 lines, 21px per line; the extra 0.5 line is intentional so the `mask` effect is obvious

src/components/OperationSetCard.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const NeoOperationSetCard = ({
3838
</H4>
3939
</Tooltip2>
4040
</div>
41-
<div className="flex-1 flex flex-col gap-2 justify-center">
41+
<div className="flex-1 flex flex-col my-3 gap-2 justify-center">
4242
<div className="text-gray-700 leading-normal">
4343
<Paragraphs
4444
content={operationSet.description}
@@ -127,7 +127,6 @@ export const OperationSetCard = ({
127127
</div>
128128
<div className="flex md:flex-row flex-col gap-4">
129129
<div className="text-gray-700 leading-normal md:w-1/2">
130-
{/* <div className="text-sm text-zinc-600 mb-2 font-bold">作业描述</div> */}
131130
<Paragraphs
132131
content={operationSet.description}
133132
limitHeight={21 * 13.5} // 13 lines, 21px per line; the extra 0.5 line is intentional so the `mask` effect is obvious

0 commit comments

Comments
 (0)