File tree Expand file tree Collapse file tree 4 files changed +30
-2
lines changed Expand file tree Collapse file tree 4 files changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ class Localuser {
85
85
this . userinfo . localuserStore = e ;
86
86
}
87
87
static users = getBulkUsers ( ) ;
88
- static async showAccountSwitcher ( thisUser : Localuser ) : Promise < Localuser > {
88
+ static async showAccountSwitcher ( thisUser : Localuser ) {
89
89
const table = document . createElement ( "div" ) ;
90
90
table . classList . add ( "flexttb" , "accountSwitcher" ) ;
91
91
@@ -281,6 +281,7 @@ class Localuser {
281
281
}
282
282
async gottenReady ( ready : readyjson ) : Promise < void > {
283
283
await I18n . done ;
284
+ document . body . style . setProperty ( "--view-rest" , I18n . message . viewrest ( ) ) ;
284
285
this . initialized = true ;
285
286
this . ready = ready ;
286
287
this . guilds = [ ] ;
Original file line number Diff line number Diff line change @@ -730,6 +730,13 @@ class Message extends SnowFlake {
730
730
messagedwrap . classList . add ( "flexttb" ) ;
731
731
messagedwrap . appendChild ( messaged ) ;
732
732
}
733
+ text . onclick = ( ) => {
734
+ if ( text . getBoundingClientRect ( ) . height > 950 ) {
735
+ const pop = new Dialog ( I18n . message . fullMessage ( ) ) ;
736
+ pop . float . options . addMDText ( this . content ) ;
737
+ pop . show ( ) ;
738
+ }
739
+ } ;
733
740
}
734
741
text . appendChild ( messagedwrap ) ;
735
742
build . appendChild ( text ) ;
Original file line number Diff line number Diff line change @@ -1736,6 +1736,24 @@ span.instanceStatus {
1736
1736
word-break : break-word;
1737
1737
gap : 4px ;
1738
1738
width : 100% ;
1739
+ max-height : 1000px ;
1740
+ overflow : clip;
1741
+ position : relative;
1742
+ }
1743
+ .commentrow ::after {
1744
+ content : "View rest" ;
1745
+ position : absolute;
1746
+ top : 960px ;
1747
+ left : 50% ;
1748
+ transform : translate (-50% , -50% );
1749
+ background : var (--secondary-bg );
1750
+ padding : 10px ;
1751
+ border-radius : 4px ;
1752
+ text-align : center;
1753
+ cursor : pointer;
1754
+ }
1755
+ .commentrow : hover ::after {
1756
+ background : var (--secondary-hover );
1739
1757
}
1740
1758
.fileinputdiv > div {
1741
1759
width : 64px ;
Original file line number Diff line number Diff line change 468
468
"deleted" : " Deleted message" ,
469
469
"attached" : " Sent an attachment" ,
470
470
"retry" : " Resend errored message" ,
471
- "pin" : " $1 has pinned a message"
471
+ "pin" : " $1 has pinned a message" ,
472
+ "viewrest" : " View rest" ,
473
+ "fullMessage" : " Full message:"
472
474
},
473
475
"instanceStats" : {
474
476
"name" : " Instance stats: $1" ,
You can’t perform that action at this time.
0 commit comments