Skip to content

Commit 5ddc4bd

Browse files
committed
fix(emojis): keep the vite example emoji preview pinned to the right
1 parent bf7575b commit 5ddc4bd

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

examples/vite/src/AppSettings/AppSettings.scss

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,15 +1090,22 @@
10901090
justify-content: flex-end;
10911091
}
10921092

1093-
// Emoji Picker tab: controls on the left, a live preview on the right that stays in
1094-
// view (sticky) while the controls scroll. Wraps to a single column when too narrow.
1093+
// Emoji Picker tab: controls on the left, a live preview pinned on the right that
1094+
// stays in view (sticky) while the controls scroll, so config changes are immediately
1095+
// visible. Stacks into a single column only on narrow screens.
10951096
.app__emoji-settings {
10961097
display: flex;
1097-
flex-wrap: wrap;
1098+
flex-wrap: nowrap;
10981099
align-items: flex-start;
10991100
gap: var(--str-chat__spacing-xl);
11001101
}
11011102

1103+
@media (max-width: 768px) {
1104+
.app__emoji-settings {
1105+
flex-wrap: wrap;
1106+
}
1107+
}
1108+
11021109
.app__emoji-settings__controls {
11031110
display: flex;
11041111
flex: 1 1 300px;

0 commit comments

Comments
 (0)