#**swap the gif and emoji buttons because

1 messages · Page 1 of 1 (latest)

mystic tusk
#

Change the :has(...) to :has(>...)

#

also using margin for this is extremely scuffed
I think it would be much better to use order

eager hatch
#

This will only work with English language too

mystic tusk
#

yeah, but that's not as big of a deal

#

there isn't really a way to do it besides using the aria labels

#

yeah, do not use margin for this. i just tested it lmao

#

this is what it is for me without it

#

I think you should do something like this

.expression-picker-chat-input-button:has(>[aria-label="Open GIF picker"]) {
  order: 2 !important;
  ~div {
    order: 3; 
  }
}

.expression-picker-chat-input-button:has(>[aria-label="Add Emoji"]) {
  order: 1 !important;
}
mystic tusk
#

might need to adjust the numbers, i'm not really sure exactly what you're wanting

#
.expression-picker-chat-input-button:has(>[aria-label="Open GIF picker"]) {
  order: 3 !important;
  ~div {
    order: 2; 
  }
}

.expression-picker-chat-input-button:has(>[aria-label="Add Emoji"]) {
  order: 1 !important;
  ~div {
    order: 4;
  }
}
#

this swaps them for me

#

top is before bottom is after

mystic tusk
ornate narwhal
#

might do this

deep bolt
deep bolt
deep bolt
mystic tusk
#

I'm guessing the image you sent is after?

#

Mine are already in that order

deep bolt
#

yeah the image is after

mystic tusk
#

but with sticker picker in between

deep bolt
#

this is before

mystic tusk
#

huh

#

that's the same?

deep bolt
#

oop wait

#

youre right hold on i didnt turn off the css

mystic tusk
#
.expression-picker-chat-input-button:has(>[aria-label="Add Emoji"]) {
  order: 3 !important;
  ~div {
    order: 2; 
  }
}

.expression-picker-chat-input-button:has(>[aria-label="Open GIF picker"]) {
  order: 1 !important;
  ~div {
    order: 4;
  }
}
#

I think this should do it

deep bolt
#

slightly broken but if i hide useless buttons it works

#

this works in all cases for me

.expression-picker-chat-input-button:has(>[aria-label="Add Emoji"]) {
  order: 3 !important;
  ~div {
    order: 2; 
  }
}

.expression-picker-chat-input-button:has(>[aria-label="Open GIF picker"]) {
  order: 1 !important;
  ~div {
    order: 3;
  }
}
eager hatch
#

why not just

.expression-picker-chat-input-button {
  /* GIFs */
  &:nth-last-of-type(4) {
    order: 1;
  }
  /* Stickers */
  &:nth-last-of-type(3) {
    order: 2;
  }
  /* Emojis */
  &:nth-last-of-type(2) {
    order: 3;
  }
}```
and letting people choose where to put each button instead
mystic tusk
#

because some buttons aren't always there

#

i think

#

like different buttons in sidebar threads

#

and the order isn't the same for everyone