refactor(codeTabsComponent): wrap code tabs in a div with flex column layout for better styling and readability
This commit is contained in:
parent
8acdd1abff
commit
25f7814fea
1 changed files with 2 additions and 2 deletions
|
|
@ -180,7 +180,7 @@ export default function CodeTabsComponent({
|
|||
key={idx} // Remember to add a unique key prop
|
||||
>
|
||||
{idx < 4 ? (
|
||||
<>
|
||||
<div className="w-full h-full flex flex-col">
|
||||
{tab.description && (
|
||||
<div
|
||||
className="mb-2 w-full text-left text-sm"
|
||||
|
|
@ -194,7 +194,7 @@ export default function CodeTabsComponent({
|
|||
>
|
||||
{tab.code}
|
||||
</SyntaxHighlighter>
|
||||
</>
|
||||
</div>
|
||||
) : idx === 4 ? (
|
||||
<>
|
||||
<div className="api-modal-according-display">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue