Skip to content

Commit 4cff6d7

Browse files
author
Mercurio
committed
Update README.md
1 parent 41c2f28 commit 4cff6d7

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
A [Flarum](http://flarum.org) extension. Make the sidenav section sticky and scrollable. Also support hot-discussions widget.
66

7+
## Scrollbar
8+
9+
Usually when we make the sidenav section sticky, we have to scroll to the bottom of the page to view the tags that are not shown in the first place. This extension resolves the problem by making the sidenav scrollable.
10+
11+
The scrollbar will appear only if there are too many tags AND the mouse is hovering above the sidenav. Example screenshot:
12+
13+
![image](https://user-images.githubusercontent.com/32540679/162741325-5e3bdc75-424e-49ff-ae8f-8756a2d15a39.png)
14+
715
## Installation
816

917
Install with composer:

composer.json

+7-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"name": "ecnu-im/sticky-sidenav",
33
"description": "Make the sidenav section sticky and scrollable. Also support hot-discussions widget.",
44
"keywords": [
5-
"flarum"
5+
"flarum",
6+
"sticky",
7+
"sidenav"
68
],
79
"type": "flarum-extension",
810
"license": "MIT",
@@ -19,11 +21,11 @@
1921
"extra": {
2022
"flarum-extension": {
2123
"title": "Sticky Sidenav",
22-
"category": "",
24+
"category": "theme",
2325
"icon": {
24-
"name": "",
25-
"color": "",
26-
"backgroundColor": ""
26+
"name": "fas fa-map-pin",
27+
"color": "#fff",
28+
"backgroundColor": "#f28326"
2729
}
2830
},
2931
"flarum-cli": {

0 commit comments

Comments
 (0)