Skip to content

Responsive design for Donut #641

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

Merged
merged 42 commits into from
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
85f3b8e
responsive login/signup homepage for phones
lazycipher Oct 5, 2020
d383170
changed login/signup button styling
lazycipher Oct 5, 2020
f36d90b
navigation menu responsive
lazycipher Oct 8, 2020
57a8f43
added backdrop for navigation on mobile devices
lazycipher Oct 10, 2020
e12d6e8
Navigation is now a standalone component
lazycipher Oct 10, 2020
f7cfb2d
made changes as per review on PR#641
lazycipher Oct 10, 2020
1b7ebb1
used const in breakpoints and _ in css class naming convention
lazycipher Oct 11, 2020
405dde6
Mobile Responsive Dashboard
lazycipher Oct 11, 2020
62759be
removed unnecessary container causing issues
lazycipher Oct 12, 2020
220d0fd
remove extra padding from tabs
lazycipher Oct 12, 2020
da6814c
post remove extra padding for visible buttons
lazycipher Oct 12, 2020
f98e2ee
Fix for Tablet version
lazycipher Oct 14, 2020
5b8ced3
organization page responsive
lazycipher Oct 14, 2020
d83bb06
used HashLink for id navigation to login and make it smooth
lazycipher Oct 14, 2020
f06f814
login page UI fix for Tablet
lazycipher Oct 14, 2020
0ae8491
Responsiveness Fix Events Page
lazycipher Oct 16, 2020
c6f3610
projects page responsiveness fix
lazycipher Oct 16, 2020
22e71c7
Mobile and Tab Responsive Profile Page
lazycipher Oct 17, 2020
2e8e8f5
Project Info Mobile and Tab Responsive Fix
lazycipher Oct 17, 2020
609f347
Account Settings Mobile and Tab Responsive Fix
lazycipher Oct 17, 2020
1370e89
Account settings left sidebar accordion
lazycipher Oct 17, 2020
ff2dc7e
Org Settings Mobile Responsive
lazycipher Oct 17, 2020
adf5134
Users Activity Responsive Fix
lazycipher Oct 18, 2020
14220ef
Proposal Editor Responsiveness Fix
lazycipher Oct 18, 2020
e6ef221
News Feed Projects Fix
lazycipher Oct 18, 2020
a87ee14
UserProposalDashboard Responsiveness Fix
lazycipher Oct 18, 2020
56c5a8d
Proposal Discussion Responsive Fix'
lazycipher Oct 18, 2020
1905b18
Existing Proposal Editor Fix
lazycipher Oct 18, 2020
a4baead
Setup page responsive fix
lazycipher Oct 19, 2020
a78ea95
Merge branch 'development' of github.com:codeuino/social-platform-don…
lazycipher Oct 20, 2020
760a8a5
Navigation Extra List Fix
lazycipher Oct 20, 2020
385c5e9
missing name due to isMobile passed in component
lazycipher Oct 20, 2020
a117602
Changes as peer per review
lazycipher Oct 21, 2020
d363e93
navigation unnecessary div removed
lazycipher Oct 21, 2020
79bd26d
changed circular buttons to rect ones
lazycipher Oct 22, 2020
a8ee953
added default value 0 to pagination item length
lazycipher Oct 22, 2020
f8401e2
navigation using media queries
lazycipher Oct 26, 2020
50f63a1
activity using media queries
lazycipher Oct 26, 2020
161d2ab
community setting using media queries
lazycipher Oct 26, 2020
ca3b9fe
user account settings using media queries
lazycipher Oct 26, 2020
e0a7417
removed dependency from 'react-responsive'.
lazycipher Oct 28, 2020
9f1b33c
filter and ticket action responsive
lazycipher Oct 28, 2020
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
47 changes: 13 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"react-mde": "^10.2.1",
"react-moment": "^0.9.7",
"react-redux": "^7.2.0",
"react-responsive": "^8.0.3",
"react-router-dom": "^5.1.2",
"react-router-hash-link": "^2.2.2",
"react-scripts": "^3.4.0",
"react-shapes": "^0.1.0",
"react-share": "^4.2.1",
Expand Down
6 changes: 6 additions & 0 deletions src/assets/svgs/NavigationIcons/menu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
89 changes: 54 additions & 35 deletions src/user/Activity/Activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import OrgAuth from '../dashboard/Community/components/OrgAuth';
import OrgMaintenance from '../dashboard/Community/components/OrgMaintenance';
import Users from './Users';
import ActivityTimeline from './ActivityTimeline';
import { Accordion, Button } from 'react-bootstrap';

class Activity extends Component {
constructor(props) {
Expand All @@ -29,7 +30,8 @@ class Activity extends Component {
authentication: false,
maintenance: false,
activity: true,
details: true
details: true,
sidebarOpen: false
},
};
}
Expand All @@ -49,41 +51,58 @@ class Activity extends Component {

render() {
const { view } = this.state

const toggleSidebar = () => {
this.setState((prevState) => {
return {
sidebarOpen: !prevState.sidebarOpen
}
})
}
return (
<div className="overall_container">
<div className="main_navigation">
<Navigation orgSettings={this.state.org} user={this.props.user} />
</div>
<div className="org_settings_view">
<div className="main_section">
<div className="left_nav">
<p className="header_text">Community Settings</p>
<LeftNav
data={{
option: this.state.option,
changeOption: this.changeOption.bind(this),
}}
/>
</div>
<div className="right_section">
{view === "profile" ? <OrgProfile /> : null}
{view === "permission" ? <OrgPermission /> : null}
{view === "settings" ? <OrgSettings /> : null}
{view === "authentication" ? <OrgAuth /> : null}
{view === "maintenance" ? <OrgMaintenance /> : null}
{view === "activity" ? (
<Users
handleOption={{ changeOption: this.changeOption.bind(this) }}
/>
) : null}
{view === "details" ? (
<ActivityTimeline />
) : null}
<>
<Navigation orgSettings={this.state.org} user={this.props.user} />
<div className="main_section">
<div className="left_nav">
<p className="header_text">Community Settings</p>
<div className="left_nav_container">
<LeftNav
data={{
option: this.state.option,
changeOption: this.changeOption.bind(this),
}}
/>
</div>
<Accordion className="activity_accordion">
<Accordion.Toggle onClick={() => toggleSidebar()} variant="outline-secondary" size="sm" as={Button} eventKey="0">
{this.state.sidebarOpen?"Close Menu":"Setting Menu"}
</Accordion.Toggle>
<Accordion.Collapse eventKey="0">
<LeftNav
data={{
option: this.state.option,
changeOption: this.changeOption.bind(this),
}}
/>
</Accordion.Collapse>
</Accordion>
</div>
<div className="right_section">
{view === "profile" ? <OrgProfile /> : null}
{view === "permission" ? <OrgPermission /> : null}
{view === "settings" ? <OrgSettings /> : null}
{view === "authentication" ? <OrgAuth /> : null}
{view === "maintenance" ? <OrgMaintenance /> : null}
{view === "activity" ? (
<Users
handleOption={{ changeOption: this.changeOption.bind(this) }}
/>
) : null}
{view === "details" ? (
<ActivityTimeline />
) : null}
</div>
</div>
</div>
</div>
</div>
</>
);
}
}
Expand All @@ -94,4 +113,4 @@ const mapStateToProps = (state) => ({
post: state.post
})

export default connect(mapStateToProps, { getEventById, getPostById })(withRouter(Activity));
export default connect(mapStateToProps, { getEventById, getPostById })(withRouter(Activity));
2 changes: 1 addition & 1 deletion src/user/Activity/ActivityTimeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default function ActivityTimeline() {
showSizeChanger
onShowSizeChange={onShowSizeChange}
defaultCurrent={1}
total={500}
total={activity.length || 0}
onChange={handlePagination}
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/user/Activity/Users.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class Users extends Component {
showSizeChanger
onShowSizeChange={this.onShowSizeChange}
defaultCurrent={1}
total={500}
total={users.length || 0}
onChange={this.handlePagination}
/>
</div>
Expand All @@ -96,4 +96,4 @@ const mapStateToProps = (state) => ({
insight: state.insight
})

export default connect(mapStateToProps, { getMembers })(withRouter(Users));
export default connect(mapStateToProps, { getMembers })(withRouter(Users));
101 changes: 54 additions & 47 deletions src/user/Activity/activity.scss
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
.overall_container{
display: flex;
.main_navigation {
left: -1px;
top: -1px;
height: 100vh;
border: 1px solid #CCCCCC;
box-sizing: border-box;
}
.user_activity_view {
margin-top: 35px;
margin-left: 15vw;
margin-left: auto;
margin-right: auto;
.main_section {
.main_section {
margin: 35px auto auto 15vw;
display: flex;
flex-direction: row;
justify-items: center;
flex-wrap: wrap;
margin-top: -1.3em;
margin-left: -2vw;
.left_nav {
max-width: 20%;
height: 50%;
Expand Down Expand Up @@ -74,45 +59,67 @@
}
}
}
}
}
// mobile
.activity_accordion {
display: none;
}

@media screen and (max-width: 768px) {
.overall_container{
.org_settings_view {
.main_section {
.left_nav {
.navigation {
.list-group {
.link {
display: none;
}
.header_text {
font-size: 10px;
}
}
}
}
}
.main_section {
width: 100%;
margin: 0;
padding: 2.5vh 2.5vw;
flex-direction: column;
.left_nav {
width: 100%;
max-width: 100%;
margin: 10px auto;
.activity_accordion {
display: block;
}
.left_nav_container {
display: none;
}
.navigation {
.list-group {
.link {
display: none;
}
.header_text {
font-size: 10px;
}
}
}
}
}
}

// tablet
@media screen and (min-width: 768px) and (max-width: 1023px) {
.overall_container {
.org_settings_view {
.main_section {
.left_nav {
.navigation {
.list-group {
.link {
font-size: 5px;
}
}
@media screen and (min-width: 768px) and (max-width: 1024px) {

.main_section {
width: 100%;
margin: 0;
padding: 2.5vh 2.5vw;
flex-direction: column;
.left_nav {
width: 100%;
max-width: 100%;
margin: 10px auto;
.activity_accordion {
display: block;
}
.left_nav_container {
display: none;
}
.navigation {
.list-group {
.link {
font-size: 5px;
}
}
}
}
}
}
}

Loading