@@ -617,6 +617,8 @@ export default function Message({
617
617
}
618
618
619
619
function contentColumn ( ) {
620
+ const mainXS = mode === "standalone" ? 20 : 22 ;
621
+
620
622
const { background, color, lighten, message_class } = message_colors (
621
623
account_id ,
622
624
message ,
@@ -642,8 +644,6 @@ export default function Message({
642
644
...( selected ? { border : "3px solid #66bb6a" } : undefined ) ,
643
645
} as const ;
644
646
645
- const mainXS = mode === "standalone" ? 20 : 22 ;
646
-
647
647
return (
648
648
< Col key = { 1 } xs = { mainXS } >
649
649
< div
@@ -935,15 +935,14 @@ export default function Message({
935
935
< Button
936
936
type = "text"
937
937
style = { { color : COLORS . GRAY_M } }
938
- icon = { < Icon name = "to-top-outlined" /> }
939
938
onClick = { ( ) =>
940
939
actions ?. toggleFoldThread (
941
940
new Date ( getThreadRootDate ( { date, messages } ) ) ,
942
941
index ,
943
942
)
944
943
}
945
944
>
946
- Fold…
945
+ < Icon name = "to-top-outlined" /> Fold…
947
946
</ Button >
948
947
</ Tip >
949
948
) }
@@ -958,26 +957,27 @@ export default function Message({
958
957
959
958
const label = numChildren ? (
960
959
< >
961
- Show { numChildren } { plural ( numChildren , "Reply " , "Replies " ) } …
960
+ Show { numChildren + 1 } { plural ( numChildren + 1 , "Message " , "Messages " ) } …
962
961
</ >
963
962
) : (
964
- "View Replies …"
963
+ "View Messages …"
965
964
) ;
966
965
967
966
return (
968
- < Col xs = { 24 } >
969
- < div style = { { textAlign : "center" } } >
967
+ < Col xs = { 24 } style = { { } } >
968
+ < Tip title = { "Click to unfold this thread to show all messages." } >
970
969
< Button
971
970
onClick = { ( ) =>
972
971
actions ?. toggleFoldThread ( message . get ( "date" ) , index )
973
972
}
974
973
type = "link"
975
- style = { { color : "darkblue" } }
974
+ block
975
+ style = { { color : "darkblue" , textAlign : "center" } }
976
976
icon = { < Icon name = "to-top-outlined" rotate = "180" /> }
977
977
>
978
978
{ label }
979
979
</ Button >
980
- </ div >
980
+ </ Tip >
981
981
</ Col >
982
982
) ;
983
983
}
@@ -1062,7 +1062,7 @@ export default function Message({
1062
1062
1063
1063
function renderCols ( ) : JSX . Element [ ] | JSX . Element {
1064
1064
// these columns should be filtered in the first place, this here is just an extra check
1065
- if ( is_thread && is_folded && is_thread_body ) {
1065
+ if ( is_folded || ( is_thread && is_folded && is_thread_body ) ) {
1066
1066
return < > </ > ;
1067
1067
}
1068
1068
0 commit comments