Skip to content
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

Improve mobile view #176

Merged
merged 3 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/builddao/widget/Proposals.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ return (
toggleModal: () => setFiltersModal(!showFiltersModal),
}}
/>
<div className="d-flex justify-content-between">
<h3 className="text-white">Proposals</h3>
<div className="d-flex gap-3">
<div className="d-flex align-items-center flex-wrap gap-3 justify-content-between">
<h3 className="text-white m-0">Proposals</h3>
<div className="d-flex align-items-center gap-3">
<Button variant="outline" onClick={() => setFiltersModal(true)}>
Filters
</Button>
Expand Down
5 changes: 5 additions & 0 deletions apps/builddao/widget/components/navigation/header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ const Navbar = styled.div`

background-color: #0b0c14;
border-bottom: 1px solid var(--stroke-color, rgba(255, 255, 255, 0.2));

@media screen and (max-width: 768px) {
padding: 24px;
}
`;

const ButtonGroup = styled.div`
Expand Down Expand Up @@ -308,6 +312,7 @@ const AppHeader = ({ page, routes, ...props }) => (
key={k}
variant={page === k && "primary"}
className="w-100"
onClick={() => setShowMenu(false)}
>
{route.init.icon && <i className={route.init.icon}></i>}
{route.init.name}
Expand Down
2 changes: 1 addition & 1 deletion apps/builddao/widget/page/library.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
return (
<div className="container-xl mt-3">
<div className="container-xl mt-md-3">
<Widget src="buildhub.near/widget/components.Library" />
</div>
);
2 changes: 1 addition & 1 deletion apps/builddao/widget/template/SidebarLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const Sidebar = ({ currentPath, page, routes }) => (
// Define the new component that follows the SidebarLayout pattern
function SidebarLayout({ currentPath, routes, page, children }) {
return (
<Container className="container-xl mt-3">
<Container className="container-xl mt-md-3">
<SidebarContainer>
<Sidebar currentPath={currentPath} page={page} routes={routes} />
</SidebarContainer>
Expand Down
6 changes: 6 additions & 0 deletions apps/devs.near/widget/Common/Compose.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ const Wrapper = styled.div`

.up-buttons {
margin-top: 12px;

@media screen and (max-width: 768px) {
display: flex;
align-items: center;
gap: 1rem;
}
}
`;

Expand Down
Loading