diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-10 19:15:21 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-10 19:36:39 +0100 |
| commit | f8cfa5e6e3ae74b84bb94ca3f982554709d2f7d0 (patch) | |
| tree | e4ac7e11e8016cbb323b26a0c44c785249464ea4 /src/components/Widgets/ThematicsList/ThematicsList.tsx | |
| parent | dd0081f361b97abf54b958d4e04840cf84b9be3b (diff) | |
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.
Diffstat (limited to 'src/components/Widgets/ThematicsList/ThematicsList.tsx')
| -rw-r--r-- | src/components/Widgets/ThematicsList/ThematicsList.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/Widgets/ThematicsList/ThematicsList.tsx b/src/components/Widgets/ThematicsList/ThematicsList.tsx index 9b1f03a..e59050d 100644 --- a/src/components/Widgets/ThematicsList/ThematicsList.tsx +++ b/src/components/Widgets/ThematicsList/ThematicsList.tsx @@ -56,7 +56,12 @@ const ThematicsList = ({ }; return ( - <ExpandableWidget title={title} titleLevel={titleLevel} withBorders={true}> + <ExpandableWidget + title={title} + titleLevel={titleLevel} + withBorders={true} + expand={true} + > {getList()} </ExpandableWidget> ); |
