File tree 2 files changed +4
-5
lines changed
crates/egui_demo_lib/src/demo
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ impl crate::Demo for CodeExample {
111
111
. min_width ( 375.0 )
112
112
. default_size ( [ 390.0 , 500.0 ] )
113
113
. scroll ( false )
114
- . resizable ( [ true , false ] )
114
+ . resizable ( [ true , false ] ) // resizable so we can shrink if the text edit grows
115
115
. show ( ctx, |ui| self . ui ( ui) ) ;
116
116
}
117
117
}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ impl crate::Demo for WidgetGallery {
50
50
fn show ( & mut self , ctx : & egui:: Context , open : & mut bool ) {
51
51
egui:: Window :: new ( self . name ( ) )
52
52
. open ( open)
53
- . resizable ( [ true , false ] )
53
+ . resizable ( [ true , false ] ) // resizable so we can shrink if the text edit grows
54
54
. default_width ( 280.0 )
55
55
. show ( ctx, |ui| {
56
56
use crate :: View as _;
@@ -254,7 +254,7 @@ impl WidgetGallery {
254
254
ui. end_row ( ) ;
255
255
256
256
ui. hyperlink_to (
257
- "Custom widget: " ,
257
+ "Custom widget" ,
258
258
super :: toggle_switch:: url_to_file_source_code ( ) ,
259
259
) ;
260
260
ui. add ( super :: toggle_switch:: toggle ( boolean) ) . on_hover_text (
@@ -274,10 +274,9 @@ fn doc_link_label_with_crate<'a>(
274
274
title : & ' a str ,
275
275
search_term : & ' a str ,
276
276
) -> impl egui:: Widget + ' a {
277
- let label = format ! ( "{title}:" ) ;
278
277
let url = format ! ( "https://docs.rs/{crate_name}?search={search_term}" ) ;
279
278
move |ui : & mut egui:: Ui | {
280
- ui. hyperlink_to ( label , url) . on_hover_ui ( |ui| {
279
+ ui. hyperlink_to ( title , url) . on_hover_ui ( |ui| {
281
280
ui. horizontal_wrapped ( |ui| {
282
281
ui. label ( "Search egui docs for" ) ;
283
282
ui. code ( search_term) ;
You can’t perform that action at this time.
0 commit comments