Martin Brennan
5537bdffbf
FIX: Scroll enough to show topic timeline from down arrow
...
This fixes the problem where if you clicked the down / scroll
to bottom arrow at the top of the table of contents, the scroll
would _just_ not quite be enough to show the topic timeline,
which would require another mouse scroll.
Now if there is a second post we just scroll directly to the
top of that, which makes the topic timeline show immediately.
2024-01-31 11:45:56 +10:00
Kris
3179e886a3
REVERT: reverting toggle to do display issues ( #72 )
2023-12-11 18:39:19 -05:00
Kris
fc53d7efa2
FIX: adjust mobile specificity ( #71 )
...
* FIX: adjust mobile specificity
* prettier
2023-12-12 09:48:17 +11:00
Kris
04acc4bb30
FIX: only add classes if TOC is present ( #70 )
2023-12-11 16:17:46 -05:00
Kris
a089aa0289
FEATURE: Toggle between timeline and TOC ( #68 )
2023-12-11 12:53:17 -05:00
Jarek Radosz
bab2e8f3b9
DEV: Update linting setup ( #69 )
2023-11-19 22:43:47 +01:00
Kris
a807ff3546
Revert "FEATURE: Toggle between timeline and TOC ( #64 )" ( #67 )
...
This reverts commit 7c19d41864
.
2023-10-25 12:18:36 -04:00
Kris
7c19d41864
FEATURE: Toggle between timeline and TOC ( #64 )
2023-10-25 12:08:24 -04:00
Alan Guo Xiang Tan
f2f309b552
DEV: Switch to new addComposerToolbarPopupMenuOption plugin API ( #65 )
...
Why this change?
`api.addToolbarPopupMenuOptionsCallback` has been deprecated in 913fd3a7b3
2023-10-23 08:09:06 +08:00
Alan Guo Xiang Tan
04577e0b90
Revert "DEV: Switch theme to use new `addComposerToolbarPopupMenuOpti… ( #62 )
...
This reverts commit d59dc7caf4
.
We have compatibility problems with themes and core right now: https://meta.discourse.org/t/-/282315/7
2023-10-16 15:23:04 +08:00
Alan Guo Xiang Tan
d59dc7caf4
DEV: Switch theme to use new `addComposerToolbarPopupMenuOption` api ( #61 )
...
Why this change?
The new API is better and allows us to avoid modifying the composer
service.
2023-10-06 09:20:09 +08:00
David Taylor
566d79fa39
FIX: Restore wrapper element for d-toc-mini ( #60 )
2023-10-04 12:45:22 +01:00
Alan Guo Xiang Tan
4ae24c6edc
DEV: Convert connector file to use glimmer component ( #59 )
...
Why this change?
We've established internally that this is the better way to do things
2023-10-04 16:02:30 +08:00
David Taylor
165cfa13f3
DEV: Update eslint-config-discourse, use prettier for hbs ( #49 )
2023-01-04 13:41:09 +01:00
Vinoth Kannan
55f83a913c
FEATURE: new theme setting to disable TOC in posts with less headings. ( #47 )
...
The theme setting `TOC_min_heading` will decide whether the TOC should display or not based on the number of headings available in the post.
2022-11-04 09:41:16 +05:30
Jarek Radosz
f80c215a28
SECURITY: Render TOC items as plain text ( #44 )
2022-10-03 21:10:05 +02:00
Jordan Vidrine
d6b02afbc2
FIX: Add # to empty hrefs ( #43 )
2022-09-29 12:53:12 -05:00
Joe
58a1400f55
FEATURE: Automatically add TOC based on topic category / tags ( #42 )
...
This PR adds two settings.
One allows admins to select a list of categories that will automatically enable the TOC if the topic category matches.
The other does the same but with tags.
Note that the topic still needs to have the other requirements for TOC, such as having headings. Also, this will still only apply to the first post.
This PR also moves some setting descriptions to the appropriate place.
It also uses `pretender` for the tests instead of generating the fixture manually.
2022-07-26 01:23:19 +08:00
Jarek Radosz
7b3c12ae15
DEV: Update CI workflows ( #39 )
2022-06-17 18:20:09 +02:00
Penar Musaraj
a309e6406d
DEV: Fix compatibility with styleguide ( #38 )
2022-06-13 18:03:39 -04:00
Penar Musaraj
5d69a72200
FIX: Compatibility with discourse-docs plugin ( #37 )
2022-05-09 14:09:59 -04:00
Penar Musaraj
c658e95d54
FIX: Generate unique IDs for non-Latin languages ( #36 )
2022-05-05 14:25:37 -04:00
Penar Musaraj
26f4e45dc2
FIX: Compatibility with loading slider ( #34 )
2022-03-25 14:14:15 -04:00
Penar Musaraj
7bf7b95901
DEV: A few more fixes ( #27 )
...
- fix `Ctrl` + clicking on other links in a page with DiscoTOC
- visually show third level in TOC
- fix overlapping levels for long TOCs
- remove support for h6 headings
2022-01-20 16:14:37 -05:00
Penar Musaraj
ca7fe6b644
DEV: Fix tag name matching ( #26 )
2022-01-20 10:53:40 -05:00
Penar Musaraj
8c33f07dc5
FIX: Switch to a two-level sidebar list ( #25 )
2022-01-19 17:17:30 -05:00
Penar Musaraj
0bc2aa28a3
FIX: Restore support for docs plugin ( #24 )
2022-01-19 12:50:45 -05:00
Penar Musaraj
ff434a4f7b
FIX: Ignore link click counts ( #23 )
2022-01-19 11:53:13 -05:00
Penar Musaraj
aa35509588
FIX: Issue when used with loading slider component ( #22 )
2022-01-19 08:45:58 -05:00
Penar Musaraj
e044017955
UX: A couple of small fixes ( #21 )
2022-01-18 11:36:40 -05:00
Penar Musaraj
86b9960263
FIX: Allow adding TOC when editing first post ( #20 )
2022-01-18 09:52:51 -05:00
Penar Musaraj
20366c671d
REFACTOR: General component overhaul ( #19 )
2022-01-18 09:18:21 -05:00