Skip to content

Commit

Permalink
Merge pull request #207 from benjeffery/fix-table-initial
Browse files Browse the repository at this point in the history
Fix initial table view
  • Loading branch information
benjeffery authored Oct 21, 2024
2 parents 15d917b + cd3a0df commit 86eaee9
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 86eaee9

Please sign in to comment.