Skip to content

Commit

Permalink
Content-visiblit:auto for custom emojis list
Browse files Browse the repository at this point in the history
With better sticky headers
  • Loading branch information
cheeaun committed Sep 21, 2024
1 parent f2cc0f5 commit 02a8a90
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/components/compose.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/components/compose.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand All @@ -3173,7 +3173,7 @@ function CustomEmojisModal({
emojis={emojis}
onSelect={onSelectEmoji}
/>
</>
</div>
),
)}
</div>
Expand Down

0 comments on commit 02a8a90

Please sign in to comment.