From 09be1d01db4cd059849777ed643919e36486b8b1 Mon Sep 17 00:00:00 2001
From: Rambaud Pierrick <12rambau@users.noreply.github.com>
Date: Mon, 18 Sep 2023 20:45:35 +0200
Subject: [PATCH 1/2] fix: truncate title in breadcrumbs
When title is too long it becomes messy to display.
---
.../theme/pydata_sphinx_theme/components/breadcrumbs.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/breadcrumbs.html b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/breadcrumbs.html
index 2d7261c6b..7a7fc0caa 100644
--- a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/breadcrumbs.html
+++ b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/breadcrumbs.html
@@ -24,7 +24,7 @@
{{ doc.title }}
{% endif %}
{%- endfor %}
- {{ title }}
+ {{ title|truncate(10, False) }}
{% endif %}
From fcb0d0cdd59d5c75097c737f9d8d342a4b2ed5d6 Mon Sep 17 00:00:00 2001
From: Rambaud Pierrick <12rambau@users.noreply.github.com>
Date: Tue, 19 Sep 2023 20:59:37 +0200
Subject: [PATCH 2/2] leave 15 characters
---
.../theme/pydata_sphinx_theme/components/breadcrumbs.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/breadcrumbs.html b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/breadcrumbs.html
index 7a7fc0caa..c9e6f0438 100644
--- a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/breadcrumbs.html
+++ b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/breadcrumbs.html
@@ -24,7 +24,7 @@
{{ doc.title }}
{% endif %}
{%- endfor %}
- {{ title|truncate(10, False) }}
+ {{ title|truncate(15, False) }}
{% endif %}