52 Commits

Author SHA1 Message Date
chapoi
b5f77fd5eb Merge branch 'feature/add-expand-all-button' of https://github.com/discourse/DiscoTOC into feature/add-expand-all-button 2025-07-24 15:08:56 +02:00
chapoi
e9625c1461 DEV: add toggle to mini-buttons for mobile 2025-07-24 14:48:05 +02:00
chapoi
abfec74971 UX: layout expand toggle to right of ToC 2025-07-24 14:26:14 +02:00
Martin Brennan
7ef2da43c7
Merge branch 'main' into feature/add-expand-all-button 2025-07-24 11:49:39 +10:00
Jarek Radosz
13d02bf9d3
DEV: [gjs-codemod] Convert all templates to gjs (#119) 2025-05-29 20:05:58 +01:00
Martin Brennan
d2535b2538
Merge branch 'main' into feature/add-expand-all-button 2025-04-08 13:12:11 +10:00
Jarek Radosz
d65428689b
DEV: Update linting (#115) 2025-03-17 11:42:17 +00:00
Jarek Radosz
6a29ef570e
DEV: Update linting (#110) 2025-02-19 18:06:48 +01:00
Martin Brennan
d8b9292066
FEATURE: Add expand all button for TOC
This commit adds a button at the top of the TOC
headings list called "Expand all". This will expand
all of the subheadings in the list for easier searching.
Clicking the button again will hide all the subheadings except
the currently active one.
2025-01-21 16:27:21 +10:00
锦心
830c0436c8
FEATURE: Allow TOC for replies (#90)
* FEATURE: Allow TOC for replies

This commit adds an optional setting that allows enabling a TOC for
replies. TOCs for replies are not affected by autoTOC settings like
`auto_TOC_tags` and must be inserted manually.
2024-08-07 15:40:11 +08:00
Kris
826b5fb22a
REFACTOR: convert to ember component, add timeline toggle (#73) 2024-01-31 10:22:06 -05: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
a089aa0289
FEATURE: Toggle between timeline and TOC (#68) 2023-12-11 12:53:17 -05:00
Kris
a807ff3546
Revert "FEATURE: Toggle between timeline and TOC (#64)" (#67)
This reverts commit 7c19d4186414a35dd65e8f5ad6950b3561cb6d21.
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
Kris
25cb5954f6
DEV: update box-shadow due to core change (#55) 2023-06-14 09:00:18 -04:00
Canapin
ea7f8791ab
UX: fix TOC header in composer preview (#54) 2023-03-11 11:23:42 +01:00
Penar Musaraj
5d69a72200
FIX: Compatibility with discourse-docs plugin (#37) 2022-05-09 14:09:59 -04:00
Penar Musaraj
da0f76b65c
FIX: Prevent jumping on scroll (#33)
We previously added a reset to the topic body to fix some wrapping
issues, but looks like a) the reset is no longer necessary and b) it
causes jumping on scroll. So let's remove it.
2022-03-09 18:24:11 +01:00
Penar Musaraj
098d05f3d5
UX: Hide TOC on mobile docs topics (#32) 2022-02-28 18:11:17 +01:00
Penar Musaraj
993303199b
UX: Fix layout issues in < 1035px wide windows (take 2) (#31) 2022-02-03 16:46:14 +01:00
Penar Musaraj
18793f633b
UX: Fix bug with desktop widths < 1045px (#29) 2022-01-31 16:18:11 +01:00
Penar Musaraj
2fd7d5107f
UX: Keep core's top margin for first item in OP (#30) 2022-01-31 16:17:58 +01:00
Penar Musaraj
cd8690ffa2
UX: Adjust spacing and max height for subsections (#28) 2022-01-28 23:42:33 +01: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
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
e044017955
UX: A couple of small fixes (#21) 2022-01-18 11:36:40 -05:00
Penar Musaraj
20366c671d
REFACTOR: General component overhaul (#19) 2022-01-18 09:18:21 -05:00
Jordan Vidrine
5b2f5a455e
UX: Sidebar fixes (#18) 2022-01-05 10:40:18 -06:00
Jordan Vidrine
d72dc3306b
UX: Adjustments for chat (#16) 2021-12-30 10:35:15 -06:00
Jordan Vidrine
98c05eabfb
UX: Sidebar + Chat fixes (#15) 2021-12-30 10:27:46 -06:00
Bianca Nenciu
113d3a8612
FIX: Remove anchor generated by theme component (#13)
Core adds anchors to all headings.
2021-07-29 17:06:31 +03:00
Joe
fcc2d0698b
FIX: add post controls icon to mobile (#11) 2021-05-10 23:36:56 +08:00
Joe
268ef4cb8f
Update common.scss 2021-05-10 22:02:45 +08:00
Joe
b8b9b4bd9e
FEATURE: add button to navigate to TOC post controls (#10) 2021-05-10 21:03:22 +08:00
awesomerobot
fb392bd536 UX: long sidebar items forces topic to wrap, pin previous versions 2020-10-27 13:46:57 -04:00
Penar Musaraj
68d40fe9f5
Add dark mode support 2020-08-25 11:58:15 -04:00
Penar Musaraj
96964d690b UX: Fix mobile toggle positioning in iOS app 2020-05-07 19:35:12 -04:00
Joe
34a7c13a6b
UX: transition timeline opacity 2019-04-15 05:30:59 +08:00
Joe
1ee43956c2
DiscoTOC v0.2 2019-04-14 13:47:22 -07:00
Joe
94cb1f1a4b
UX: negate heading buffer clicks 2019-04-13 04:06:42 +08:00
Joe
dacb213a36
use edit-title class for first post edits 2019-03-09 12:48:38 +08:00
Joe
5bd18d9114
there's no ltr class 2019-03-09 11:05:58 +08:00
Joe
e3128161ae
RTL style tweaks 2019-03-09 11:01:21 +08:00
Joe
43402b506f
adds RTL support 2019-03-09 10:54:08 +08:00
Joe
82915d7ff0
only create toc for topics ignore replies 2019-03-09 10:33:58 +08:00
Joe
4d4b3c0cec
removes poster avatar border in TOC posts 2019-03-09 10:20:26 +08:00
Joe
a3d7cce275
code formatting 2019-03-09 10:09:32 +08:00