commit
4380117e62
6 changed files with 10 additions and 7 deletions
|
@ -162,6 +162,7 @@
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
padding-bottom: 1em;
|
padding-bottom: 1em;
|
||||||
clear: both;
|
clear: both;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.problem-feed-name {
|
.problem-feed-name {
|
||||||
|
@ -234,7 +235,7 @@
|
||||||
padding: 0px 12px;
|
padding: 0px 12px;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 50% 0px 52px;
|
inset: 50% 0px 0px;
|
||||||
background: linear-gradient(transparent, white);
|
background: linear-gradient(transparent, white);
|
||||||
display: flex;
|
display: flex;
|
||||||
-webkit-box-pack: end;
|
-webkit-box-pack: end;
|
||||||
|
|
|
@ -42,8 +42,8 @@
|
||||||
{{ post.summary|default(post.content, true)|markdown(lazy_load=True)|reference|str|safe }}
|
{{ post.summary|default(post.content, true)|markdown(lazy_load=True)|reference|str|safe }}
|
||||||
{% endcache %}
|
{% endcache %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="show-more"> {{_("...More")}} </div>
|
<div class="show-more"> {{_("...More")}} </div>
|
||||||
|
</div>
|
||||||
<div class="actionbar-box">
|
<div class="actionbar-box">
|
||||||
{% set pagevote = post.pagevote %}
|
{% set pagevote = post.pagevote %}
|
||||||
{% set bookmark = post.bookmark %}
|
{% set bookmark = post.bookmark %}
|
||||||
|
|
|
@ -14,5 +14,6 @@
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
<div class='blog-description content-description'>
|
<div class='blog-description content-description'>
|
||||||
{{ comment.body|markdown(lazy_load=True)|reference|str|safe }}
|
{{ comment.body|markdown(lazy_load=True)|reference|str|safe }}
|
||||||
|
<div class="show-more"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -132,8 +132,8 @@
|
||||||
</form>
|
</form>
|
||||||
<center id="thank-{{problem.id}}" style="display: none; margin-top: 3em"></center>
|
<center id="thank-{{problem.id}}" style="display: none; margin-top: 3em"></center>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
|
||||||
<div class="show-more"> {{_("...More")}} </div>
|
<div class="show-more"> {{_("...More")}} </div>
|
||||||
|
</div>
|
||||||
<div class="actionbar-box">
|
<div class="actionbar-box">
|
||||||
{% set pagevote = problem.pagevote %}
|
{% set pagevote = problem.pagevote %}
|
||||||
{% set bookmark = problem.bookmark %}
|
{% set bookmark = problem.bookmark %}
|
||||||
|
|
|
@ -33,13 +33,13 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function activateBlogBoxOnClick() {
|
function activateBlogBoxOnClick() {
|
||||||
$('.show-more').on('click', function () {
|
$('.show-more').on('click', function () {
|
||||||
var $description = $(this).parent().children('.blog-description');
|
var $blogbox = $(this).parent().parent();
|
||||||
|
var $description = $blogbox.children('.blog-description');
|
||||||
var max_height = $description.css('max-height');
|
var max_height = $description.css('max-height');
|
||||||
if (max_height !== 'fit-content') {
|
if (max_height !== 'fit-content') {
|
||||||
$description.css('max-height', 'fit-content');
|
$description.css('max-height', 'fit-content');
|
||||||
$(this).parent().css('cursor', 'auto');
|
$blogbox.css('cursor', 'auto');
|
||||||
$(this).parent().removeClass('pre-expand-blog');
|
$blogbox.removeClass('pre-expand-blog');
|
||||||
console.log($(this).parent());
|
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -21,5 +21,6 @@
|
||||||
</div>
|
</div>
|
||||||
<div class='blog-description content-description'>
|
<div class='blog-description content-description'>
|
||||||
{{ ticket.messages.last().body|markdown(lazy_load=True)|reference|str|safe }}
|
{{ ticket.messages.last().body|markdown(lazy_load=True)|reference|str|safe }}
|
||||||
|
<div class="show-more"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in a new issue