Skip to content
This repository

Set a max-width of 300px on wiki's toc #692

Closed
wants to merge 3 commits into from

4 participants

aperson Max Goodman Andre d Neil Williams
aperson

The default allows the toc to get rather wide. Here I've set it to be as wide as the default subreddit sidebar.

r2/r2/public/static/css/wiki.less
@@ -120,6 +120,10 @@
120 120 }
121 121
122 122 // Wiki table of contents
  123 + .md.wiki > .toc {
  124 + max-width: 300px;
1

Why not just move this into the .md.wiki > .toc > ul rule below?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Max Goodman

:nail_care: No need to re-create the pull request with updates -- just push onto the branch and the request will be updated :)

Andre d

I think this was fixed and can be closed?

Max Goodman

Still appears open to me. http://www.reddit.com/wiki/faq

Neil Williams
Owner

Merged as 6417f23. Thanks!

Neil Williams spladug closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  r2/r2/public/static/css/wiki.less
2  r2/r2/public/static/css/wiki.less
@@ -126,6 +126,8 @@
126 126 margin-right: 0;
127 127 border: 1px solid #8D9CAA;
128 128 list-style: none;
  129 + max-width: 300px;
  130 + float: right;
129 131 }
130 132 .md.wiki > .toc > ul ul {
131 133 margin: 4px 0;

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.