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

Date is now clickable, if lecture doesn't have a name #1319

Conversation

SebiWrn
Copy link
Contributor

@SebiWrn SebiWrn commented Jan 23, 2024

Motivation and Context

Fixes #1314

Description

If a lecture doesn't have a name, the date is now clickable so you can select them in list view as well.

Copy link

Your Testserver will be ready at https://1319.test.live.mm.rbg.tum.de in a few minutes.

Logins
Kurs1 Kurs2 Kurs3 Kurs4
public public loggedin enrolled
prof1 prof1 prof2 prof1
prof2
student1
student2
student3
student1
student2
student2
student3
student1
student2

@barisgul15
Copy link
Contributor

Yeap, functionally works perfectly, but maybe the date which is also the link can look better. What I mean is that for example the font of the named lecture link is bold and when mouse is on it, a straight line appears under the text which indicates that it is a link. It is also the case for the lecture name links on homepage.
Named lecture link:
manually_namex_lecture_link
List view link:
automatically_named_lecture_link
Home course link:
homepage_lecture_link

@SebiWrn
Copy link
Contributor Author

SebiWrn commented Jan 24, 2024

Text now shows up in full size if List View is toggled

Copy link
Contributor

@YiranDuan721 YiranDuan721 left a comment

Choose a reason for hiding this comment

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

Works great in total!

<span class="date" :class="isListView() ? '' : 'text-sm'"
x-text="vod.FriendlyDateStart()"></span>
</a>
</template>
</div>
<button type="button" @click="vod.Dropdown.toggle()"
Copy link
Contributor

Choose a reason for hiding this comment

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

This button is currently too far away from the title... This makes it hard for me to notice that there's a button. Do you think it would be better to place it more to the left?
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Where would you put it?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would put it directly to the right of the date, with appropriate padding

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But this would cause the button to be at a different position for every entry in the list

Copy link
Contributor

Choose a reason for hiding this comment

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

That's true... And I don't think this button is very frequently used (those who click on them a lot will probably find them anyway). I'll approve the change and maybe you can deploy this fix along with (after) the test tonight.

@YiranDuan721 YiranDuan721 merged commit f5b7bd7 into dev Jan 29, 2024
8 checks passed
@YiranDuan721 YiranDuan721 deleted the 1314-when-lectures-are-not-named-you-can-not-click-them-on-list-view branch January 29, 2024 16:58
SebiWrn added a commit that referenced this pull request May 7, 2024
* Date is now clickable, if lecture doesn't have a name

* Updated date to be normal size if in list view
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.

When lectures are not named, you can not click them on list view
3 participants