31
Allow collapsing of side menus (media.piefed.social)
submitted 2 days ago* (last edited 2 days ago) by ozoned@piefed.social to c/piefed_meta@piefed.social

When you're subscribed to a lot of communities it creates a massive list down the side of the page. This leaves a TON of white space. Is there a way to collapse those menus by default to allow for a shorter cleaner looking page?

you are viewing a single comment's thread
view the rest of the comments
[-] melimosa@piefed.blahaj.zone 2 points 1 day ago

So I come up with a way better solution, remember that I'm not a JS/CSS dev at all. This is done through some flex container manipulation, height manipulation and :hover magic.

It hides the sidebar below the main panel, and by hovering the grey rectangle it allows you to show it. I find it to work really well.

.main_pane, #side_pane {
  order: 1;
  width: 90%;
  max-width: unset !important;
  margin: 0 auto !important;
  overflow-y: hidden;
}

#side_pane {
  order: 0;
  
  display: flex;
  
  flex-direction: row;
  flex-wrap: wrap;
  
  margin-top: 1rem !important;
  gap: 1em 0.5em;
  
  height: 3rem;
}

#side_pane:before {
    display: block;
    content: close-quote;
    height: 3em;
    width: 95%;
    margin: 0 auto;
    background-color: #eee;
}
  
#side_pane .card {
    order: 1;
    margin-top: unset !important;
    height: fit-content;
    max-width: calc(100% - 1em);
    width: 100%;
}
  
#side_pane .card#about_community {
    order: 0;
    width: 100%;
}

#side_pane:hover {
    height: unset;
    margin-bottom: 1rem !important;
}
    
#side_pane:hover:before {
  display: none;
}

PieFed custom CSS system doesn't allow & and ' symbols, which is pretty inconvenient for recursives selectors and for content clauses.

[-] wjs018@piefed.social 1 points 23 hours ago

I don't know enough css to know exactly what is going on here just from a glance. However, if it would make your life easier if there was a new css class on something that you could target, that is easy enough to add, just let us know.

[-] Blaze@lemmy.zip 1 points 1 day ago
[-] melimosa@piefed.blahaj.zone 2 points 1 day ago

Oh thanks, didn't know about this community, I might post it there :)

this post was submitted on 26 Aug 2025
31 points (100.0% liked)

PieFed Meta

1527 readers
23 users here now

Discuss PieFed project direction, provide feedback, ask questions, suggest improvements, and engage in conversations related to the platform organization, policies, features, and community dynamics.

Wiki

founded 2 years ago
MODERATORS