From c502760ad811af983d41e2ab971d94bed09034f5 Mon Sep 17 00:00:00 2001 From: Prajwal Kulkarni Date: Tue, 26 Dec 2023 13:03:00 +0530 Subject: [PATCH 1/5] Fix overflowing text content in footer link Add an ellipsis to overflowing text in the footer section for navigating between different references. --- src/components/DocsFooter.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/DocsFooter.tsx b/src/components/DocsFooter.tsx index 2fdbb0460c1..75d90dc584d 100644 --- a/src/components/DocsFooter.tsx +++ b/src/components/DocsFooter.tsx @@ -78,12 +78,12 @@ function FooterLink({ className="text-tertiary dark:text-tertiary-dark inline group-focus:text-link dark:group-focus:text-link-dark" displayDirection={type === 'Previous' ? 'start' : 'end'} /> - - +
+ {type} - {title} - + {title} +
); } From 92330571fef8f23cd7282febea705d2501e53bb7 Mon Sep 17 00:00:00 2001 From: Prajwal Kulkarni Date: Wed, 10 Jan 2024 22:38:18 +0530 Subject: [PATCH 2/5] Add min and max width to nextlink class --- src/components/DocsFooter.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DocsFooter.tsx b/src/components/DocsFooter.tsx index 75d90dc584d..2c6e99937f7 100644 --- a/src/components/DocsFooter.tsx +++ b/src/components/DocsFooter.tsx @@ -69,7 +69,7 @@ function FooterLink({ Date: Wed, 10 Jan 2024 22:39:40 +0530 Subject: [PATCH 3/5] Add minwidth to tailwind config --- tailwind.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tailwind.config.js b/tailwind.config.js index d528ff494d1..a9488ccc77a 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -57,8 +57,13 @@ module.exports = { 'meta-gradient-dark': "url('/images/meta-gradient-dark.png')", }, maxWidth: { + ...defaultTheme.maxWidth, xs: '21rem', }, + minWidth:{ + ...defaultTheme.minWidth, + 80: '20rem', + }, outline: { blue: ['1px auto ' + colors.link, '3px'], }, From 8db6691e6932aa38a1ee0e18528f8ff19ad57730 Mon Sep 17 00:00:00 2001 From: Prajwal Kulkarni Date: Sat, 13 Jan 2024 00:25:32 +0530 Subject: [PATCH 4/5] Wrap string beyond max width --- src/components/DocsFooter.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/DocsFooter.tsx b/src/components/DocsFooter.tsx index 2c6e99937f7..69c30675ad6 100644 --- a/src/components/DocsFooter.tsx +++ b/src/components/DocsFooter.tsx @@ -27,7 +27,7 @@ export const DocsPageFooter = memo( <> {prevRoute?.path || nextRoute?.path ? ( <> -
+
{prevRoute?.path ? (
- + {type} - {title} + + {title} +
); From 9cd5a29dcb733f5ae6e324e2fafc8510288433f1 Mon Sep 17 00:00:00 2001 From: Prajwal Kulkarni Date: Sat, 13 Jan 2024 00:30:47 +0530 Subject: [PATCH 5/5] Remove title attribute from span element --- src/components/DocsFooter.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/DocsFooter.tsx b/src/components/DocsFooter.tsx index 69c30675ad6..5f2330e7eae 100644 --- a/src/components/DocsFooter.tsx +++ b/src/components/DocsFooter.tsx @@ -82,9 +82,7 @@ function FooterLink({ {type} - + {title}