Skip to content

Instantly share code, notes, and snippets.

@TheRainTrain
Created October 4, 2024 12:35
Show Gist options
  • Select an option

  • Save TheRainTrain/a087417410c6a6e1bdd07bfe80137b7a to your computer and use it in GitHub Desktop.

Select an option

Save TheRainTrain/a087417410c6a6e1bdd07bfe80137b7a to your computer and use it in GitHub Desktop.
discord's forward button position sucks. this switches the reply and forward buttons around
.hoverBarButton_e986d9[aria-label="Forward"] {
position: relative;
right: 100%;
}
.hoverBarButton_e986d9[aria-label="Edit"] {
position: relative;
left: 100%;
}
.hoverBarButton_e986d9[aria-label="Reply"]:has(+ .hoverBarButton_e986d9[aria-label="Forward"]) {
position: relative;
left: 100%;
}
.hoverBarButton_e986d9[aria-label="Mark Unread"] + .hoverBarButton_e986d9[aria-label="Reply"],
.hoverBarButton_e986d9[aria-label="Pin Message"] + .hoverBarButton_e986d9[aria-label="Reply"] {
position: relative;
left: 300%;
}
.hoverBarButton_e986d9[aria-label="Edit"] + .hoverBarButton_e986d9[aria-label="Forward"]:has(+ .hoverBarButton_e986d9[aria-label="Delete"]) {
position: relative;
right: 400%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment