-
Notifications
You must be signed in to change notification settings - Fork 0
Cleaned up title in square #7
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,11 @@ | |
| <h3> | ||
| {{ calVal.date + 1 }} | ||
| </h3> | ||
|
|
||
| <p class="title"> | ||
| {{ (filmExist(calVal.date)) ? listToDisplay.get(calVal.date)!.name : '' }} | ||
| </p> | ||
|
|
||
| <p | ||
| v-for="[username, filmList] in userFilmList.entries()" | ||
| :class="filmList.get(listToDisplay.get(calVal.date)?.name ?? '')?.toLowerCase() ?? ''" | ||
|
|
@@ -118,7 +123,6 @@ | |
|
|
||
| padding: 0.22em 0.11em 0; | ||
| margin: 0; | ||
| margin-bottom: auto; | ||
| border-radius: 100%; | ||
|
|
||
| line-height: 2ch; | ||
|
|
@@ -133,6 +137,11 @@ | |
| background: var(--red); | ||
| } | ||
|
|
||
| .title | ||
| { | ||
| display: none; | ||
| } | ||
|
|
||
| p.user | ||
| { | ||
| font-family: var(--body-font); | ||
|
|
@@ -174,6 +183,20 @@ | |
| hsl(0, 100%, 38%, 0.5)); | ||
| } | ||
|
|
||
| @media (min-width: 1400px) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you flip this to Alternatively, if you want this to be a |
||
| .title | ||
| { | ||
| display: block; | ||
| margin: 0 0.5ch auto 0.5ch; | ||
| max-width: max-content; | ||
|
|
||
| font-family: var(--body-font); | ||
| color: var(--black); | ||
| font-size: 1.25rem; | ||
| text-align: left; | ||
| } | ||
| } | ||
|
|
||
| @media (max-width: 975px) | ||
| { | ||
| #calender | ||
|
|
@@ -185,6 +208,7 @@ | |
| { | ||
| font-size: 1.3rem; | ||
| transform: translate(-3px, -3px); | ||
| margin-bottom: auto; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah I see you do add it back in, but a little too late. These styles only kick in after 975px, while the titles disappear at 1400. |
||
| } | ||
|
|
||
| p.user | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In flex layout,
automargin takes up all available space. You should at least add it back when the titles disappear to keep the usernames from clustering up at the top: