Skip to content

Commit b778f28

Browse files
committed
Fix Safari rendering bug
Signed-off-by: Andrew Stein <steinlink@gmail.com>
1 parent 7e6d181 commit b778f28

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

  • rust/perspective-viewer/src/rust/components/containers

rust/perspective-viewer/src/rust/components/containers/sidebar.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,14 @@ pub fn Sidebar(p: &SidebarProps) -> Html {
6262

6363
let width_style = format!("min-width: 200px; width: {}px", *auto_width);
6464
html! {
65-
<div class="sidebar_column" id={format!("{id}_sidebar")} ref={noderef}>
65+
<>
6666
<SidebarCloseButton id={format!("{id}_close_button")} on_close_sidebar={&p.on_close} />
67-
<div class="sidebar_header"><EditableHeader ..p.header_props.clone() /></div>
68-
<div class="sidebar_border" id={format!("{id}_border")} />
69-
{ p.children.iter().collect::<Html>() }
70-
<div class="sidebar-auto-width" style={width_style} />
71-
</div>
67+
<div class="sidebar_column" id={format!("{id}_sidebar")} ref={noderef}>
68+
<div class="sidebar_header"><EditableHeader ..p.header_props.clone() /></div>
69+
<div class="sidebar_border" id={format!("{id}_border")} />
70+
{ p.children.iter().collect::<Html>() }
71+
<div class="sidebar-auto-width" style={width_style} />
72+
</div>
73+
</>
7274
}
7375
}

0 commit comments

Comments
 (0)