Calendar improvements
This commit is contained in:
parent
23f66003b1
commit
473f9ae024
@ -5,6 +5,8 @@ component Calendar(days []*utils.CalendarDay, user *arn.User)
|
||||
each day in days
|
||||
.weekday
|
||||
h3.weekday-name= day.Name
|
||||
ol
|
||||
.calendar-entries
|
||||
each entry in day.Entries
|
||||
li= entry.Anime.Title.ByUser(user) + " (Ep: " + strconv.Itoa(entry.Episode.Number) + ")"
|
||||
.calendar-entry
|
||||
.calendar-entry-title= entry.Anime.Title.ByUser(user)
|
||||
.calendar-entry-episode= "Ep: " + strconv.Itoa(entry.Episode.Number)
|
@ -2,9 +2,10 @@
|
||||
vertical
|
||||
|
||||
.weekday
|
||||
flex 1
|
||||
width 100%
|
||||
text-align left
|
||||
border-bottom 1px solid ui-border-color
|
||||
padding 0.5rem
|
||||
|
||||
:last-child
|
||||
border-bottom none
|
||||
@ -12,11 +13,29 @@
|
||||
.weekday-name
|
||||
text-align center
|
||||
|
||||
.calendar-entries
|
||||
vertical
|
||||
|
||||
.calendar-entry
|
||||
ui-element
|
||||
padding 0.75rem 1rem
|
||||
margin-bottom 0.5rem
|
||||
overflow hidden
|
||||
|
||||
.calendar-entry-title
|
||||
clip-long-text
|
||||
|
||||
.calendar-entry-episode
|
||||
opacity 0.75
|
||||
text-align right
|
||||
font-size 0.9rem
|
||||
|
||||
> 800px
|
||||
.week
|
||||
horizontal
|
||||
|
||||
.weekday
|
||||
width 14.2857%
|
||||
border-bottom none
|
||||
border-right 1px solid ui-border-color
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user