#expandable user panel

1 messages ยท Page 1 of 1 (latest)

unique otter
#

will this snippet gets updated?
sorry i just love this and after the update the snippet died ๐Ÿ˜ฆ thanks in advance/

odd oasis
#
/* Expandable User Panel */

.panels__58331 div[class^="container"] div[class^="flex"] {
  width: fit-content !important; 
  margin-left: auto; 
  margin-right: 0;
}

.panels__58331 div[class^="container"] div[class^="avatarWrapper"] {
  width: 194px;
  margin-right: 8px !important;
}

.panels__58331 div[class^="container"] div[class^="flex"] button[role="switch"] {
  width: 0px;
  overflow: hidden;
  transition: all 0.3s;
  left: 16px;
}

.panels__58331 div[class^="container"] div[class^="flex"]:hover button[role="switch"] {
  width: 32px;
  overflow: visible;
  transition: all 0.3s;
  left: 0px;
}

.panels__58331 div[class^="container"] div[class^="flex"]:not(:hover) button:not([role="switch"]) svg {
  rotate: 360deg;
  transition: rotate 0.3s;
  background-color: var(--background-secondary-alt); /* might look off with some themes */
}

.panels__58331 div[class^="container"] div[class^="flex"]:hover button:not([role="switch"]) svg {
  rotate: 0deg;
  transition: rotate 0.3s;
}
#

here ya go!

unique otter
#

yikes ! thank you so much!

pastel hearth
#

tysm this was soo good

static sail
#

aww, love this

dark igloo
#

Why? Em

dark igloo
static sail
#

prolly something wrong with ur theme? cus it works for me fine

#

or it was made for just dark mode, who knows

odd oasis
# dark igloo

super late but delete the "background-color: var(--background-secondary-alt)" line

#

it stops icon overlap but only works on dark mode

dark igloo
#

Hey guys, This is the new version of the expandable user panel.

/* Expandable User Panel */

.panels_a4d4d9 div[class^="container"] div[class^="flex"] {
  width: fit-content !important; 
  margin-left: auto; 
  margin-right: 0;
}

.panels_a4d4d9 div[class^="container"] div[class^="avatarWrapper"] {
  width: 194px;
  margin-right: 8px !important;
}

.panels_a4d4d9 div[class^="container"] div[class^="flex"] button[role="switch"] {
  width: 0px;
  overflow: hidden;
  transition: all 0.3s;
  left: 16px;
}

.panels_a4d4d9 div[class^="container"] div[class^="flex"]:hover button[role="switch"] {
  width: 32px;
  overflow: visible;
  transition: all 0.3s;
  left: 0px;
}

.panels_a4d4d9 div[class^="container"] div[class^="flex"]:not(:hover) button:not([role="switch"]) svg {
  rotate: 360deg;
  transition: rotate 0.3s;
  background-color: transparent;
}

.panels_a4d4d9 div[class^="container"] div[class^="flex"]:hover button:not([role="switch"]) svg {
  rotate: 0deg;
  transition: rotate 0.3s;
}
ivory sonnet
#

any kind soul to update it for yesterday's Discord update?

updated with https://syndishanx.github.io/Website/Update_Classes.html

/* Expandable User Panel */

.panels_c48ade div[class^="container"] div[class^="flex"] {
  width: fit-content !important; 
  margin-left: auto; 
  margin-right: 0;
}

.panels_c48ade div[class^="container"] div[class^="avatarWrapper"] {
  width: 194px;
  margin-right: 8px !important;
}

.panels_c48ade div[class^="container"] div[class^="flex"] button[role="switch"] {
  width: 0px;
  overflow: hidden;
  transition: all 0.3s;
  left: 16px;
}

.panels_c48ade div[class^="container"] div[class^="flex"]:hover button[role="switch"] {
  width: 32px;
  overflow: visible;
  transition: all 0.3s;
  left: 0px;
}

.panels_c48ade div[class^="container"] div[class^="flex"]:not(:hover) button:not([role="switch"]) svg {
  rotate: 360deg;
  transition: rotate 0.3s;
  background-color: transparent;
}

.panels_c48ade div[class^="container"] div[class^="flex"]:hover button:not([role="switch"]) svg {
  rotate: 0deg;
  transition: rotate 0.3s;
}```
ivory sonnet
#

Broken again, this time the site doesn't help Sadge

odd oasis
#
/* Expandable User Panel */

.panels_c48ade div[class^="buttons_"] {
  width: fit-content !important; 
  margin-left: auto; 
  margin-right: 0;
}

.panels_c48ade div[class^="buttons_"] button[role="switch"] {
  width: 0px;
  overflow: hidden;
  transition: all 0.3s;
  left: 16px;
}

.panels_c48ade div[class^="buttons_"]:hover button[role="switch"] {
  width: 32px;
  overflow: visible;
  transition: all 0.3s;
  left: 0px;
}

.panels_c48ade div[class^="buttons_"]:not(:hover) button:not([role="switch"]) svg {
  rotate: 360deg;
  transition: rotate 0.3s;
}

.panels_c48ade div[class^="buttons_"]:hover button:not([role="switch"]) svg {
  rotate: 0deg;
  transition: rotate 0.3s;
}
ivory sonnet
#

thank you ๐Ÿ™‚

ivory sonnet
#

Discord decided we need more buttons there, because we change the input and output devices every minute Annoyed

odd oasis
#
/* Expandable User Panel */
.panels_c48ade .buttons__37e49 {
  width: fit-content !important; 
  margin-left: auto; 
  margin-right: 0;
}

.panels_c48ade .buttons__37e49 > :is(button:not(:last-of-type), div:has(button)) {
  width: 0px;
  overflow: hidden;
  transition: width 0.3s;
}

.panels_c48ade .buttons__37e49:hover > :is(button:not(:last-of-type), div:has(button)) {
  width: 42px;
  overflow: visible;
  transition: width 0.3s;
}

.panels_c48ade .buttons__37e49:hover > button:not(:last-of-type) {
  width: 32px;
}

.panels_c48ade .buttons__37e49:not(:hover) > button:last-of-type svg {
  rotate: 360deg;
  transition: rotate 0.3s;
}

.panels_c48ade .buttons__37e49:hover > button:last-of-type svg {
  rotate: 0deg;
  transition: rotate 0.3s;
}```