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

Fix mobile bugs related to resizing and styling #405

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

szeckirjr
Copy link
Contributor

@szeckirjr szeckirjr commented Jul 9, 2022

Description

Closes #407

Proposal for fixing visual layout of import page on mobile to make use of sidebars and remove redundant buttons.
Removing right sidebar, as it simply showed list of courses, which is accessible on main page. Also added timetable tags to the left sidebar along with the actions.
This also fixes the Swiper error on resizing, and now aligns with the page properly.

Screenshots

Before

image

image

image

After

image

image

image

Checklist

  • The code follows all style guidelines.
  • The code passes all required tests.
  • The code is documented.
  • The code includes tests.
  • I have self-reviewed my changes and have done QA.

General Comments

Would it be useful to add timetable cards underneath for "Your Timetable Courses" to show the user what they have saved currently?

@szeckirjr szeckirjr requested a review from a team as a code owner July 9, 2022 04:28
@vercel
Copy link

vercel bot commented Jul 9, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
courseup ✅ Ready (Inspect) Visit Preview Jul 19, 2022 at 0:04AM (UTC)

@szeckirjr szeckirjr changed the title Changing style of import page Fix mobile bugs related to resizing and styling Jul 19, 2022

export function ImportTimetable(): JSX.Element {
const { slug } = useParams();
const smallScreen = useSmallScreen();

const { loading, data } = useGetTimetable({ slug: slug });
const [courses, setCourses] = useState<TimetableCourse[]>([]);
const [term, setTerm] = useState<Term>('202205');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getCurrentTerm() probably better here instead of hard coding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Responsive Design - Registration Page
2 participants