From f8cfa5e6e3ae74b84bb94ca3f982554709d2f7d0 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Thu, 10 Feb 2022 19:15:21 +0100
Subject: chore: improve widgets

* Make all widgets expanded by default. This way, without Javascript,
thematics and topics are still available.
* Improve collapse/expand transition.
* Remove widget scrollbar: the height was sometimes weird because of
that. Except for ToC on large devices.
---
 src/components/Widgets/ToC/ToC.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/Widgets/ToC/ToC.tsx')

diff --git a/src/components/Widgets/ToC/ToC.tsx b/src/components/Widgets/ToC/ToC.tsx
index c499478..8a2d493 100644
--- a/src/components/Widgets/ToC/ToC.tsx
+++ b/src/components/Widgets/ToC/ToC.tsx
@@ -25,7 +25,7 @@ const ToC = () => {
   };
 
   return (
-    <ExpandableWidget title={title} expand={true} withBorders={true}>
+    <ExpandableWidget title={title} kind="toc" expand={true} withBorders={true}>
       <OrderedList items={getItems(headingsTree)} />
     </ExpandableWidget>
   );
-- 
cgit v1.2.3

