Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add melt-ui toc in (pages) #113

Merged
merged 1 commit into from
Nov 13, 2024
Merged

add melt-ui toc in (pages) #113

merged 1 commit into from
Nov 13, 2024

Conversation

grmbyrn
Copy link
Collaborator

@grmbyrn grmbyrn commented Nov 13, 2024

  • To improve Table of Contents as mentioned here and here, I installed Melt UI to handle the Table of Contents. I implemented it according to the Melt UI's docs for the appropriate parts of each page in routes/(pages).
  • Fixed any changes this installation had on other parts of the website.
  • Refactored repeated styles used in routes/(pages) by extracting into PagesWrapper.svelte.
  • Extracted table headings and table data from routes/(pages)/about/+page.svelte into constants/constants to maintain consistency with data used in other tables on the website.

@grmbyrn grmbyrn requested a review from josecelano November 13, 2024 14:12
Copy link
Member

@josecelano josecelano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @grmbyrn It looks good. There is only one thing I don't like it. The vertical scroll bar in the Index page.

image

I would use only the window scroll bar. I think nested scroll bars are a pain.

@josecelano
Copy link
Member

ACK b72f1c3

@josecelano josecelano merged commit 6b90d44 into torrust:develop Nov 13, 2024
1 check passed
@grmbyrn grmbyrn deleted the fix-toc branch November 14, 2024 09:17
josecelano added a commit that referenced this pull request Nov 22, 2024
5078729 Applied changes from TGlide's PR consistently across the website (TGlide)
59a10b8 remove PagesWrapper 100vh, make Toc sticky on desktop up (Graeme Byrne)
a39f573 remove vertical scroll bar (Graeme Byrne)

Pull request description:

  * Remove vertical scroll bar on all `routes/(pages)` as mentioned [here](#113 (review)) using the following:

  ```
  .content-preview {
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top: 0rem;
  }
  ```
  * Edit lists on all `routes/(pages)` to ensure style consistency.

ACKs for top commit:
  josecelano:
    ACK 5078729

Tree-SHA512: df3e02cded2f2b4a36a0cf542051c05f8aff21ded49d607ab33c6434f21fa01198d160200086adc6b9e4a9660b2a629f4d010892fe17e6832c1caae62ed3628a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants