Skip to content
Snippets Groups Projects
Verified Commit faae6cc8 authored by Louis's avatar Louis :fire:
Browse files

Fix encounter panel text

parent f3f63810
No related branches found
No related tags found
No related merge requests found
Pipeline #262 passed with stages
in 2 minutes and 39 seconds
......@@ -67,6 +67,8 @@ pub fn render_encounter_panel(
};
if let Some((title, description, options)) = encounter_data {
log::info!("{}", description);
rsx! {
<ElementBundle styles={panel_style}>
<PanelWidget>
......@@ -105,7 +107,7 @@ pub fn render_encounter_panel(
thumb_color: Some(Color::rgb(0.451, 0.224, 0.063)),
..Default::default()
} } styles={KStyle { padding: edge_px(5.0), ..Default::default() }}>
{ for line in description.lines() {
{ for line in description.split("\n") {
constructor! {
<BackgroundBundle
styles={KStyle {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment