Skip to content

Commit a6ce0d4

Browse files
committed
Add snippet for fixing message component size
1 parent 7d9508c commit a6ce0d4

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ Script used for generating the css: [https://gist.github.com/Davr1/42e64ec0b2ae4
8585

8686
---
8787

88+
### [Fix message component scaling](/snippets/message_component_scaling.css?raw=true)
89+
90+
![](https://cdn.discordapp.com/attachments/692065688524816475/934430983934050374/unknown.png)
91+
8892
# Other
8993

9094
### ~~[Channel view switch](/snippets/channel_view_switch.css?raw=true)~~ [DEPRECATED](https://github.com/Discord-Datamining/Discord-Datamining/commit/b1817ee338fd46ca49bed78c543eebf054380761#commitcomment-64133576)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
:is(.messageAttachment-CZp8Iv>a, .embedWrapper-1MtIDg>a, .embedWrapper-1MtIDg>div>a) {
2+
height: auto !important;
3+
}
4+
:is(.messageAttachment-CZp8Iv>a>img, .embedWrapper-1MtIDg>div>a>img, .embedWrapper-1MtIDg>a>img) {
5+
max-width: 100% !important;
6+
height: auto !important;
7+
position: unset;
8+
}
9+
.embedWrapper-1MtIDg {
10+
width: auto !important;
11+
}
12+
.wrapper-1HIH0j {
13+
width: clamp(172px, 100%, 432px);
14+
}
15+
.wrapper-3-JZ_Z {
16+
width: clamp(248px, 100%, 432px);
17+
}

0 commit comments

Comments
 (0)