-
Notifications
You must be signed in to change notification settings - Fork 686
Use FluentSplitter for Summary/Details View #819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use FluentSplitter for Summary/Details View #819
Conversation
a8402cf
to
3ae63e7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I compared how it behaves to the dev tools in browsers. Feedback:
|
I tested this more. They panels are resized proportionally if they're resized after they first open. That breaks after they are resized using the splitter. Demo: |
I don't see a straightforward way to do this from the outside of the component (though I admit I may have missed something). I filed microsoft/fluentui-blazor#958 to see if it can be a part of the component itself. Will file a follow-up issue to this PR to track it.
@vnbaaij noted this is changed in his PR. If that doesn't fix all of what you're referring to, we can follow up.
I found one issue where neither size nor position were remembered on the trace detail page because the URL is part of the key for saving it by default (technically it did save it for the same trace id/span id, but not if you went to a different one). I changed that in this commit. I couldn't find another place where it didn't work. If you still see this, let me know and I'll troubleshoot
The way the FluentSplitter currently works, when you resize it it gives a fixed width (in px) to the left/top panel and 1fr (essentially "the rest") to the right/bottom panel. So when you resize the page, the left/top always stays the same size. I filed microsoft/fluentui-blazor#957 to suggest adding proportional resize (which is what the SummaryDetailsView component uses) and maybe making the second panel be fixed instead of the first. |
Missed this one earlier. I agree. I played around with styling it a bit in a few different ways, but felt it probably needed some design feedback that warranted its own PR. I'll note this as one of the things to split off to its own issue |
e0feb25
to
f69991e
Compare
OK, following up on the above:
I was not able to find a case where the splitter didn't remember its size or position after I made the one fix above. If anyone does find a case where that happens, I'll track it down. |
private async Task HandleDismissAsync() | ||
{ | ||
await OnDismiss.InvokeAsync(); | ||
} | ||
|
||
private void HandleToggleOrientation() | ||
private async void HandleToggleOrientation() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
async Task
To be honest, I'm not sure what Blazor does with the task, but async void is rarely good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D'oh. Looks like I let VS add the async
for me when I typed await
but then there were no errors/warnings so I forgot to go back and change void
to Task
too. Thanks for the catch. Pushed a fix in #883
This PR replaces #803 that was unexpectedly closed when the repo was made public.
This partially addresses #590. Once this goes in, I'll split off the remaining work from that issue into separate issues that can be picked up by anyone.
Screenshot with the splitter (only real visible change to the user is the gray splitter bar):
