Skip to content

Conversation

leeyandrea
Copy link

UI update

</div>
<!-- STUDY TABLE -->
<div class="rounded-xl border border-neutral-300 overflow-y-auto">
<!-- TABLE HEADERS -->
Copy link
Author

Choose a reason for hiding this comment

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

There's an issue with clipping and responsiveness when screen is small I think due to the way the studies items are being handled within the MyStudiesItem component and the table headers in the MyStudiesPage. Not immediately noticeable. will fix when I figure out how

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like there's a large margin being applied to the entire my studies page that cuts off study items when the screen becomes small

</div>

<div class="space-y-6">
<!-- RECENT STUDIES -->
Copy link
Author

Choose a reason for hiding this comment

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

should figure out how to show recent studies if no studies have been made yet

Copy link
Contributor

@amberchow8 amberchow8 left a comment

Choose a reason for hiding this comment

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

Really good work on the my studies page! It looks good but I think it needs some changes before we merge. Also I'm not sure why the prettier and lint checks failed because I don't see any formatting issues so maybe delete this PR and we can put up a new PR when changes are made. Let me know if you have any questions about my comments or if you want to work on the ticket together!

<template>
<el-button
class="bg-primary-300 text-white border border-primary-400 rounded-lg px-5 py-1 justify-center"
class="bg-primary-200 text-neutral-10 border border-primary-300 rounded-lg px-5 py-1 justify-center"
Copy link
Contributor

Choose a reason for hiding this comment

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

We should check with Christine to confirm the styling of the button

</div>
<!-- STUDY TABLE -->
<div class="rounded-xl border border-neutral-300 overflow-y-auto">
<!-- TABLE HEADERS -->
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like there's a large margin being applied to the entire my studies page that cuts off study items when the screen becomes small

</div>
</div>
<!-- STUDY TABLE -->
<div class="rounded-xl border border-neutral-300 overflow-y-auto">
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of using div for the table, could look into using HTML tables (https://www.w3schools.com/html/html_tables.asp) or Element Plus tables (https://element-plus.org/en-US/component/table.html#table)

</div>
</RouterLink>

<!-- <div class="flex border-b border-neutral-300 py-6 items-center gap-6">
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove commented code?

:to="{ name: 'study', params: { id } }"
class="block hover:bg-neutral-50 transition-colors"
>
<div
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a lot of divs here, so I'm wondering if it could be simplified after switching to using an HTML or Element Plus table to list all the studies. Maybe we could get rid of MyStudiesItem and change it to MyStudiesTable so all studies are contained in one component

:to="{ name: 'study', params: { id } }"
class="block hover:bg-neutral-50 transition-colors"
>
<div
Copy link
Contributor

Choose a reason for hiding this comment

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

Can use Element Plus Card component (https://element-plus.org/en-US/component/card.html#card) instead of a div for each item. Also seems like there are a lot of nested divs here, can look into simplifying the HTML

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.

2 participants