Skip to content

Commit

Permalink
Fix initial table view
Browse files Browse the repository at this point in the history
  • Loading branch information
benjeffery committed Oct 21, 2024
1 parent 15d917b commit cd3a0df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tsbrowse/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def get_sidebar(selected_page):
if len(self.tsm.name) > 75
else self.tsm.name,
header=[header_selector],
sidebar=get_sidebar,
main=get_content,
sidebar=pn.Column(get_sidebar),
main=pn.Column(get_content),
raw_css=[RAW_CSS],
**DEFAULT_PARAMS,
)
Expand Down
3 changes: 1 addition & 2 deletions tsbrowse/pages/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def __init__(self, tsm):
self.table_selector = pn.widgets.Select(
name="Select Table",
options=[
"",
"edges",
"trees",
"mutations",
Expand All @@ -84,14 +85,12 @@ def __init__(self, tsm):

self.content = pn.Column(
pn.bind(self.get_filtered_table, self.table_selector, self.filter_input),
sizing_mode="stretch_both",
)
self.sidebar = pn.Column(
pn.pane.Markdown("# Tables"),
self.table_selector,
self.filter_input,
self.filter_status,
sizing_mode="stretch_height",
)

def get_filtered_table(self, table_name, filter_expr):
Expand Down

0 comments on commit cd3a0df

Please sign in to comment.