tweak pseudo virtual list
This commit is contained in:
parent
d2fe8b29f4
commit
03b055ab20
|
@ -1,4 +1,5 @@
|
||||||
<div class="pseudo-virtual-list-item"
|
<div class="pseudo-virtual-list-item"
|
||||||
|
aria-hidden="{{hide}}"
|
||||||
pseudo-virtual-list-key="{{key}}"
|
pseudo-virtual-list-key="{{key}}"
|
||||||
style="height: {{hide ? `${height}px` : ''}};"
|
style="height: {{hide ? `${height}px` : ''}};"
|
||||||
ref:node>
|
ref:node>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<article class="status-article {{originalStatus.visibility === 'direct' ? 'status-direct' : ''}}" tabindex="0"
|
<article class="status-article {{originalStatus.visibility === 'direct' ? 'status-direct' : ''}} {{isStatusInContext ? 'status-in-context' : ''}}"
|
||||||
|
tabindex="0"
|
||||||
aria-posinset="{{index}}" aria-setsize="{{length}}"
|
aria-posinset="{{index}}" aria-setsize="{{length}}"
|
||||||
on:recalculateHeight>
|
on:recalculateHeight>
|
||||||
{{#if status.reblog}}
|
{{#if status.reblog}}
|
||||||
|
@ -39,7 +40,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if !originalStatus.spoiler_text || spoilerShown}}
|
{{#if !originalStatus.spoiler_text || spoilerShown}}
|
||||||
<div class="status-content {{isStatusInContext ? 'status-in-context' : ''}}" ref:contentNode>
|
<div class="status-content" ref:contentNode>
|
||||||
{{{emojifiedContent}}}
|
{{{emojifiedContent}}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -176,8 +177,8 @@
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-content.status-in-context {
|
.status-in-context .status-content {
|
||||||
font-size: 1.1em;
|
font-size: 1.3em;
|
||||||
margin: 20px 10px 20px 5px;
|
margin: 20px 10px 20px 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue