diff --git a/common/static/scss/_common.scss b/common/static/scss/_common.scss index 9fa4e803..39790539 100644 --- a/common/static/scss/_common.scss +++ b/common/static/scss/_common.scss @@ -70,6 +70,14 @@ details { margin: 0; } +.invalid { + color: var(--pico-del-color); +} + +.valid { + color: var(--pico-ins-color); +} + .empty { font-style: italic; font-size: 80%; diff --git a/common/static/scss/_layout.scss b/common/static/scss/_layout.scss index 7557379c..ae24c355 100644 --- a/common/static/scss/_layout.scss +++ b/common/static/scss/_layout.scss @@ -31,7 +31,7 @@ .item-page { main { - width: 100vw; + // width: 100vw; padding: calc(1*var(--pico-spacing)) calc(3*var(--pico-spacing)); .middle { @@ -78,7 +78,7 @@ .classic-page, .feed-page { main { - width: 100vw; + // width: 100vw; display: grid; grid-template-columns: 64% 32%; grid-template-areas: "main aside"; diff --git a/journal/templates/mark.html b/journal/templates/mark.html index 4c3c163e..6de1e2ca 100644 --- a/journal/templates/mark.html +++ b/journal/templates/mark.html @@ -66,7 +66,7 @@ diff --git a/journal/views/wrapped.py b/journal/views/wrapped.py index b3be406b..68b49d2c 100644 --- a/journal/views/wrapped.py +++ b/journal/views/wrapped.py @@ -2,11 +2,13 @@ import base64 import calendar from typing import Any +from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.db.models import Count, F from django.db.models.functions import ExtractMonth from django.http import HttpRequest, HttpResponseRedirect from django.http.response import HttpResponse +from django.utils.translation import gettext_lazy as _ from django.views.generic.base import TemplateView from catalog.models import ( @@ -134,4 +136,5 @@ class WrappedShareView(LoginRequiredMixin, TemplateView): ) elif post: boost_toot_later(user, post.url) + messages.add_message(request, messages.INFO, _("已分享到时间轴。")) return HttpResponseRedirect(request.META.get("HTTP_REFERER", "/")) diff --git a/users/templates/users/account.html b/users/templates/users/account.html index 90410b0e..6eb620ae 100644 --- a/users/templates/users/account.html +++ b/users/templates/users/account.html @@ -97,6 +97,9 @@