Skip to content

Commit dcb44e2

Browse files
New scrollable sticker picker
This new sticker picker allows users to scroll through their whole list of stickers, without having to click a single button. Co-authored-by: spazzylemons <[email protected]>
1 parent 28c3bf8 commit dcb44e2

File tree

2 files changed

+515
-257
lines changed

2 files changed

+515
-257
lines changed

stylesheets/_modules.scss

Lines changed: 73 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5742,10 +5742,6 @@ button.module-calling-participants-list__contact {
57425742
}
57435743
}
57445744

5745-
.module-sticker-picker__recents--title {
5746-
color: $color-gray-05;
5747-
}
5748-
57495745
.module-sticker-picker__header__button {
57505746
width: 28px;
57515747
height: 28px;
@@ -5962,6 +5958,55 @@ button.module-calling-participants-list__contact {
59625958
background-color: $color-gray-05;
59635959
}
59645960

5961+
.module-sticker-picker__pack-title {
5962+
display: flex;
5963+
flex-direction: column;
5964+
justify-content: end;
5965+
5966+
margin-bottom: 5px;
5967+
height: 40px;
5968+
5969+
white-space: nowrap;
5970+
5971+
&__recents {
5972+
height: 20px;
5973+
margin-top: 0;
5974+
margin-bottom: 10px;
5975+
}
5976+
5977+
& > h3 {
5978+
height: 20px;
5979+
5980+
@include light-theme {
5981+
color: $color-gray-95;
5982+
}
5983+
5984+
@include dark-theme {
5985+
color: $color-gray-05;
5986+
}
5987+
5988+
overflow: hidden;
5989+
text-overflow: ellipsis;
5990+
5991+
margin: 0;
5992+
padding: 0;
5993+
}
5994+
5995+
& > i {
5996+
@include light-theme {
5997+
color: $color-gray-90;
5998+
}
5999+
6000+
@include dark-theme {
6001+
color: $color-gray-15;
6002+
}
6003+
height: 20px;
6004+
6005+
overflow: hidden;
6006+
text-overflow: ellipsis;
6007+
}
6008+
}
6009+
59656010
.module-sticker-picker__body {
59666011
position: relative;
59676012

@@ -5970,14 +6015,15 @@ button.module-calling-participants-list__contact {
59706015
grid-gap: 8px;
59716016
grid-template-columns: repeat(4, 1fr);
59726017
grid-auto-rows: 68px;
6018+
6019+
margin-bottom: 20px;
59736020
}
59746021

59756022
&__content {
59766023
width: 332px;
5977-
height: 356px;
5978-
padding-block: 8px 16px;
6024+
height: 386px;
59796025
padding-inline: 13px;
5980-
overflow-y: auto;
6026+
overflow: none;
59816027

59826028
&--under-text {
59836029
height: 320px;
@@ -6002,24 +6048,11 @@ button.module-calling-participants-list__contact {
60026048
outline: none;
60036049
}
60046050

6005-
&__image,
6006-
&__placeholder {
6051+
&__image {
60076052
width: 100%;
60086053
height: 100%;
60096054
object-fit: contain;
60106055
}
6011-
6012-
&__placeholder {
6013-
border-radius: 4px;
6014-
6015-
@include light-theme() {
6016-
background-color: $color-gray-05;
6017-
}
6018-
6019-
@include dark-theme() {
6020-
background-color: $color-gray-60;
6021-
}
6022-
}
60236056
}
60246057

60256058
&--empty {
@@ -6033,8 +6066,8 @@ button.module-calling-participants-list__contact {
60336066
@include font-body-1-bold;
60346067

60356068
text-align: center;
6036-
padding-block: 8px 12px;
6037-
padding-inline: 0 16px;
6069+
height: 30px;
6070+
padding: 0;
60386071

60396072
@include light-theme() {
60406073
color: $color-gray-60;
@@ -6059,6 +6092,7 @@ button.module-calling-participants-list__contact {
60596092
}
60606093

60616094
&--hint {
6095+
height: 60px;
60626096
@include light-theme() {
60636097
color: $color-ultramarine;
60646098
}
@@ -6067,12 +6101,23 @@ button.module-calling-participants-list__contact {
60676101
color: $color-ultramarine-light;
60686102
}
60696103
}
6104+
}
6105+
}
60706106

6071-
&--pin {
6072-
padding-block: 8px 12px;
6073-
padding-inline: 0px 16px;
6074-
position: absolute;
6075-
top: 0;
6107+
.module-sticker-picker__featured {
6108+
margin-bottom: 20px;
6109+
6110+
&--title {
6111+
height: 20px;
6112+
margin-top: 0;
6113+
margin-bottom: 10px;
6114+
6115+
@include light-theme {
6116+
color: $color-gray-95;
6117+
}
6118+
6119+
@include dark-theme {
6120+
color: $color-gray-05;
60766121
}
60776122
}
60786123
}

0 commit comments

Comments
 (0)