Skip to content

Commit 44d5812

Browse files
authored
dashboard my lists style fixes (#1107)
* make tab panel 100% width * fix padding on the top of my lists component
1 parent 5fccaa2 commit 44d5812

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

frontends/mit-open/src/pages/DashboardPage/DashboardPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ const LinkText = styled(Typography)(({ theme }) => ({
206206

207207
const TabPanelStyled = styled(TabPanel)({
208208
padding: "0",
209+
width: "100%",
209210
})
210211

211212
const TitleText = styled(Typography)(({ theme }) => ({

frontends/mit-open/src/pages/UserListListingPage/UserListListingPage.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@ import { useNavigate } from "react-router"
2828
import * as urls from "@/common/urls"
2929
import { manageListDialogs } from "@/page-components/ManageListDialogs/ManageListDialogs"
3030

31-
const ListHeaderGrid = styled(Grid)`
32-
margin-top: 1rem;
33-
margin-bottom: 1rem;
34-
`
31+
const PageContainer = styled(Container)({
32+
marginTop: "1rem",
33+
})
34+
35+
const ListHeaderGrid = styled(Grid)({
36+
marginBottom: "1rem",
37+
})
3538

3639
type EditUserListMenuProps = {
3740
userList: UserList
@@ -164,12 +167,12 @@ const UserListListingPage: React.FC = () => {
164167
<MetaTags>
165168
<title>User Lists</title>
166169
</MetaTags>
167-
<Container maxWidth="sm">
170+
<PageContainer maxWidth="sm">
168171
<UserListListingComponent
169172
title="User Lists"
170173
onActivate={handleActivate}
171174
/>
172-
</Container>
175+
</PageContainer>
173176
</BannerPage>
174177
)
175178
}

0 commit comments

Comments
 (0)