@@ -123,14 +123,16 @@ live_design! {
123123 }
124124
125125 <SearchIcon > { }
126- summary_label = <Markdown > {
127- height: Fit ,
126+ summary_label = <Label > {
127+ width : Fill , height: Fit ,
128128 margin: { left: 10 , top: 0 } ,
129- align: { x: 0.3 , y: 0.5 }
129+ align: { x: 0.0 , y: 0.5 }
130130 padding: 5 ,
131- font_color: ( MESSAGE_TEXT_COLOR ) ,
132- font_size: ( MESSAGE_FONT_SIZE ) ,
133- body: "Type to search."
131+ draw_text: {
132+ color: ( MESSAGE_TEXT_COLOR ) ,
133+ text_style: <REGULAR_TEXT > { font_size: ( MESSAGE_FONT_SIZE ) }
134+ }
135+ text: "Type to search."
134136 }
135137 search_all_rooms_button = <RobrixIconButton > {
136138 flow: RightWrap ,
@@ -313,7 +315,6 @@ fn apply_highlights(text: String, highlights: &[String]) -> String {
313315/// * `highlights` - Array of search terms to highlight in the message content
314316///
315317/// # Behavior
316- /// - Only processes `MessageType::Text` messages, ignoring other message types
317318/// - Uses case-insensitive matching to find search terms
318319/// - Wraps matches in `<span data-mx-bg-color="#fcdb03">` tags for yellow highlighting
319320/// - Preserves original case and formatting of the matched text
@@ -890,10 +891,10 @@ impl SearchResultSummary {
890891 "" . to_string ( )
891892 }
892893 } ;
893- self . view . markdown ( id ! ( summary_label) ) . set_text (
894+ self . view . label ( id ! ( summary_label) ) . set_text (
894895 cx,
895896 & format ! (
896- "Searching for ** '{}'** {}" ,
897+ "Searching for '{}' {}" ,
897898 truncate_to_50( & search_criteria. search_term) ,
898899 location_text
899900 ) ,
@@ -917,10 +918,10 @@ impl SearchResultSummary {
917918 ) )
918919 } ;
919920
920- self . view . markdown ( id ! ( summary_label) ) . set_text (
921+ self . view . label ( id ! ( summary_label) ) . set_text (
921922 cx,
922923 & format ! (
923- "{} result{} for ** '{}'** {}" ,
924+ "{} result{} for '{}' {}" ,
924925 results. count,
925926 if results. count <= 1 { "" } else { "s" } ,
926927 truncate_to_50( & results. search_term) ,
@@ -941,7 +942,7 @@ impl SearchResultSummaryRef {
941942 let Some ( mut inner) = self . borrow_mut ( ) else {
942943 return ;
943944 } ;
944- inner. view . markdown ( id ! ( summary_label) ) . set_text (
945+ inner. view . label ( id ! ( summary_label) ) . set_text (
945946 cx,
946947 "Type to search." ,
947948 ) ;
0 commit comments