diff --git a/common/common.scss b/common/common.scss index e2f887f..ecbb21a 100644 --- a/common/common.scss +++ b/common/common.scss @@ -1,3 +1,5 @@ +@use "lib/viewport"; + $padding-basis: 0.75em; @media screen and (min-width: 925px) { @@ -8,7 +10,9 @@ $padding-basis: 0.75em; } .d-toc-main { - display: flex; + @include viewport.from(sm) { + display: flex; + } min-width: 6em; max-width: 13em; word-wrap: break-word; diff --git a/javascripts/discourse/components/toc-contents.gjs b/javascripts/discourse/components/toc-contents.gjs index 02afe57..f1f43dd 100644 --- a/javascripts/discourse/components/toc-contents.gjs +++ b/javascripts/discourse/components/toc-contents.gjs @@ -162,7 +162,11 @@ export default class TocContents extends Component {