From 8687f621f28926972d00f698b0444d4175a9760a Mon Sep 17 00:00:00 2001 From: 21120447 Date: Mon, 28 Oct 2024 15:34:35 +0700 Subject: [PATCH] :recycle: refactor: text example responsive --- src/components/word-result/WordResult.tsx | 16 ++++++++-------- src/layout/Layout.tsx | 2 +- src/layout/SideBar.tsx | 3 ++- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/components/word-result/WordResult.tsx b/src/components/word-result/WordResult.tsx index 671075c..8fcbb57 100644 --- a/src/components/word-result/WordResult.tsx +++ b/src/components/word-result/WordResult.tsx @@ -32,22 +32,22 @@ const WordResult = ({ wordFound, wordNotFound }: Props) => { ))} {wordFound.map((wordFound, index) => ( - + {wordFound.meanings.map((meaning, index) => ( - + {meaning.partOfSpeech} {meaning.definitions.map((definition, index) => ( - - {definition.definition} + + {definition.definition} {definition.example && ( - - +
+ Example: - {definition.example} - + {definition.example} +
)}
))} diff --git a/src/layout/Layout.tsx b/src/layout/Layout.tsx index 991e01b..7c899ff 100644 --- a/src/layout/Layout.tsx +++ b/src/layout/Layout.tsx @@ -14,7 +14,7 @@ const Layout = () => { return ( <> - +
diff --git a/src/layout/SideBar.tsx b/src/layout/SideBar.tsx index 2bbf6eb..2c187ac 100644 --- a/src/layout/SideBar.tsx +++ b/src/layout/SideBar.tsx @@ -99,7 +99,8 @@ const SideBar = ({ isOpen }: Props) => { return (