#expandable user panel
1 messages ยท Page 1 of 1 (latest)
will this snippet gets updated?
sorry i just love this and after the update the snippet died ๐ฆ thanks in advance/
/* 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!
yikes ! thank you so much!
tysm this was soo good
aww, love this
prolly something wrong with ur theme? cus it works for me fine
or it was made for just dark mode, who knows
super late but delete the "background-color: var(--background-secondary-alt)" line
it stops icon overlap but only works on dark mode
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;
}
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;
}```
Broken again, this time the site doesn't help 
/* 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;
}
thank you ๐
Discord decided we need more buttons there, because we change the input and output devices every minute 
/* 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;
}```