remotes/1693045480750635534/spooky-22
Aevann1 2021-11-06 20:20:34 +02:00
parent 40b27cf365
commit 347bd334cf
2 changed files with 6 additions and 1 deletions

View File

@ -136,6 +136,11 @@ class User(Base):
super().__init__(**kwargs)
@property
@lazy
def csslazy(self):
return self.css
@property
@lazy
def notifications(self):

View File

@ -20,7 +20,7 @@
<div class="w-lg-100">
<form id="profile-settings" action="/settings/css" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<textarea class="form-control rounded" id="bio-text" aria-label="With textarea" placeholder="Custom CSS" rows="50" name="css" form="profile-settings" maxlength="4000">{% if v.css %}{{v.css}}{% endif %}</textarea>
<textarea class="form-control rounded" id="bio-text" aria-label="With textarea" placeholder="Custom CSS" rows="50" name="css" form="profile-settings" maxlength="4000">{% if v.css %}{{v.csslazy}}{% endif %}</textarea>
<small>Limit of 4000 characters</small>
<div class="d-flex mt-2">
<input id="submit-btn" class="btn btn-primary ml-auto" type="submit" value="Save">