Improved mobile list

This commit is contained in:
Eduard Urbach 2017-07-21 05:51:11 +02:00
parent aeb562b548
commit 75631f261f
3 changed files with 4 additions and 6 deletions

View File

@ -64,11 +64,9 @@ component AnimeList(animeList *arn.AnimeList, viewUser *arn.User, user *arn.User
.action(contenteditable=utils.SameUser(user, viewUser), data-field="Episodes", data-type="number", data-trigger="focusout", data-action="save")= item.Episodes .action(contenteditable=utils.SameUser(user, viewUser), data-field="Episodes", data-type="number", data-trigger="focusout", data-action="save")= item.Episodes
if item.Status == arn.AnimeListStatusWatching if item.Status == arn.AnimeListStatusWatching
.plus-episode.action(data-action="increaseEpisode", data-trigger="click") + .plus-episode.action(data-action="increaseEpisode", data-trigger="click") +
.anime-list-item-episodes-separator / .anime-list-item-episodes-separator /
.anime-list-item-episodes-max= item.Anime().EpisodeCountString() .anime-list-item-episodes-max= item.Anime().EpisodeCountString()
//- .anime-list-item-episodes-edit
//- a.ajax(href=, title="Edit anime")
//- RawIcon("pencil")
td.anime-list-item-rating(title="Overall rating") td.anime-list-item-rating(title="Overall rating")
.action(contenteditable=utils.SameUser(user, viewUser), data-field="Rating.Overall", data-type="number", data-trigger="focusout", data-action="save")= utils.FormatRating(item.Rating.Overall) .action(contenteditable=utils.SameUser(user, viewUser), data-field="Rating.Overall", data-type="number", data-trigger="focusout", data-action="save")= utils.FormatRating(item.Rating.Overall)

View File

@ -76,11 +76,11 @@
display block display block
.anime-list-item-airing-date .anime-list-item-airing-date
display none display none !important
> 700px > 700px
.anime-list-item-airing-date .anime-list-item-airing-date
display block display flex !important
text-align right text-align right
width 150px width 150px
opacity 0.8 opacity 0.8

View File

@ -15,7 +15,7 @@ component Thread(thread *arn.Thread, posts []*arn.Post, user *arn.User)
Avatar(user) Avatar(user)
.post-content .post-content
textarea#new-reply(placeholder="Reply...") textarea#new-reply(placeholder="Reply...", aria-label="Reply")
.buttons .buttons
button.action(data-action="forumReply", data-trigger="click") button.action(data-action="forumReply", data-trigger="click")