-
Notifications
You must be signed in to change notification settings - Fork 117
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
ui v2: sidebar #758
ui v2: sidebar #758
Conversation
a3278ba
to
10c53ed
Compare
import FeedbackButton from "./feedback"; | ||
import Header from "./header"; | ||
|
||
const AppLayout: React.FC = ({ children }) => { | ||
const Box = styled(MuiBox)({ |
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.
based this off a material ui drawer example https://material-ui.com/components/drawers/#mini-variant-drawer, sandbox. and for width: "calc(100% - 100px)
, I pattern matched AIM
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.
overall good, minor nits and qs
bc85149
to
89a3186
Compare
RE #758 (comment), it's tricker than I thought. If you use the landing cards to navigate to a workflow, that needs to update the sidebar selected state too. Haven't figured out the right/clean way to achieve this. So for now, I have a simple selected state based on the open prop |
89a3186
to
47e7ff3
Compare
1220e52
to
0b32a1a
Compare
@dschaller latest commit addressed the content being hidden behind the sidebar. with these changes 2251bfc, the sidebar detaches from the header when the browser isn't full screen. I've been able to fix it by making the header position sticky with top 0. I didn't push that change up b/c still figuring out how to do it the right way with flex. |
@@ -87,7 +89,7 @@ const Landing: React.FC<{}> = () => { | |||
<Typography variant="h5">Trending Workflows</Typography> | |||
</Grid> | |||
{trendingWorkflows.map(workflow => ( | |||
<Grid item xs={12} sm={12} md={6} lg={4} xl={4}> | |||
<Grid key={workflow.path} item xs={12} sm={12} md={6} lg={4} xl={4}> |
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.
This is just to fix a console warning. Unrelated from this PR but was on UIV2
@scarlettperry fixed the mobile layout position in 7e9abf0 |
@dschaller thank you for the help and corrections! looks beautiful 😍 |
Description
PR
Testing Performed
locally,
make dev-mock
TODOs
Group
component