Skip to content

Commit 31277a5

Browse files
authored
Merge pull request #2666 from harnish7576/harnish7576/issue_2587_cleanup_design_for_displayed_card
Updated styling for the display card to match result cards
2 parents b6ba514 + b584101 commit 31277a5

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

src/pages/learn/APIGeneralContent.jsx

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ export function VariableParameterExplorer(props) {
514514
</div>
515515

516516
{totalPages > 1 && (
517-
<div style={{ marginTop: 20, textAlign: "center" }}>
517+
<div style={{ marginTop: 20, marginBottom: 20, textAlign: "center" }}>
518518
<div
519519
style={{ display: "inline-flex", alignItems: "center", gap: "8px" }}
520520
>
@@ -679,11 +679,22 @@ function CardDrawer(props) {
679679
const type = metadata.type;
680680
return (
681681
<>
682-
{type === "parameter" ? (
683-
<APIParameterCard metadata={metadata} />
684-
) : (
685-
<APIVariableCard metadata={metadata} />
686-
)}
682+
<Card
683+
bordered={true}
684+
style={{
685+
width: "100%",
686+
backgroundColor: "white",
687+
overflow: "hidden",
688+
cursor: "pointer",
689+
transition: "transform 0.2s",
690+
}}
691+
>
692+
{type === "parameter" ? (
693+
<APIParameterCard metadata={metadata} />
694+
) : (
695+
<APIVariableCard metadata={metadata} />
696+
)}
697+
</Card>
687698
</>
688699
);
689700
}

0 commit comments

Comments
 (0)