mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 08:45:32 +03:00
Content-visiblit:auto for custom emojis list
With better sticky headers
This commit is contained in:
parent
f2cc0f5bec
commit
02a8a9034a
2 changed files with 11 additions and 2 deletions
|
@ -721,6 +721,11 @@
|
|||
}
|
||||
|
||||
.custom-emojis-list {
|
||||
.section-container {
|
||||
position: relative;
|
||||
content-visibility: auto;
|
||||
content-intrinsic-size: auto 88px;
|
||||
}
|
||||
.section-header {
|
||||
font-size: 80%;
|
||||
text-transform: uppercase;
|
||||
|
@ -730,6 +735,10 @@
|
|||
top: 0;
|
||||
background-color: var(--bg-color);
|
||||
z-index: 1;
|
||||
display: inline-block;
|
||||
padding-inline-end: 8px;
|
||||
pointer-events: none;
|
||||
border-end-end-radius: 8px;
|
||||
}
|
||||
section {
|
||||
display: flex;
|
||||
|
|
|
@ -3162,7 +3162,7 @@ function CustomEmojisModal({
|
|||
Object.entries(customEmojisCatList).map(
|
||||
([category, emojis]) =>
|
||||
!!emojis?.length && (
|
||||
<>
|
||||
<div class="section-container">
|
||||
<div class="section-header">
|
||||
{{
|
||||
'--recent--': t`Recently used`,
|
||||
|
@ -3173,7 +3173,7 @@ function CustomEmojisModal({
|
|||
emojis={emojis}
|
||||
onSelect={onSelectEmoji}
|
||||
/>
|
||||
</>
|
||||
</div>
|
||||
),
|
||||
)}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue