Skip to content

Commit

Permalink
Merge pull request #49 from laixintao/tab-n-new-layout
Browse files Browse the repository at this point in the history
align span detail title to top left.
  • Loading branch information
laixintao authored Oct 8, 2023
2 parents c27f073 + 8d4be8d commit 9fc5e56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flameshow/const.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VIEW_INFO_COLOR = "#ffffff"
SELECTED_PARENTS_BG_COLOR_BLEND_TO = "#8b0000"
SELECTED_PARENTS_BG_COLOR_BLEND_FACTOR = 0.7
SELECTED_PARENTS_BG_COLOR_BLEND_FACTOR = 0.5
3 changes: 1 addition & 2 deletions flameshow/render/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ class FlameshowApp(App):
height: 1fr;
padding: 0 1;
border: round $secondary;
border-subtitle-align: left;
content-align-vertical: middle;
}
Expand Down Expand Up @@ -231,7 +230,7 @@ async def watch_view_frame(self, old, new_frame):
def _update_span_detail(self, frame):
# set the span detail info
span_detail = self.query_one("#span-detail")
span_detail.border_subtitle = frame.render_title()
span_detail.border_title = frame.render_title()
span_detail.update(
frame.render_detail(self.sample_index, self.sample_unit)
)
Expand Down

0 comments on commit 9fc5e56

Please sign in to comment.