Skip to content

Instantly share code, notes, and snippets.

@showgo001
Last active January 11, 2024 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save showgo001/eaeeeb89df555d4fd56cd3ba8dfebcc3 to your computer and use it in GitHub Desktop.
Save showgo001/eaeeeb89df555d4fd56cd3ba8dfebcc3 to your computer and use it in GitHub Desktop.
Slack extension with Stylus. Shorten message with the :complete: reaction icon.
@-moz-document url-prefix("https://app.slack.com/client/") {
/* Insert code here... */
[data-qa="message_container"]:has([data-stringify-emoji=":complete:"]) {
.c-message_kit__blocks {
max-height: 20px!important;
display: block;
opacity:0.3;
overflow: hidden;
}
.c-files_container {
height:20px;
display:block;
.c-message_kit__file__meta + div{
display:none;
}
img {
display:none;
}
}
.c-message_kit__attachments{
display:none;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment