Skip to content

Commit

Permalink
Adjest height to avoid layout shift
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Jan 23, 2024
1 parent e401350 commit a2f0762
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/PickerDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export default function PickerDemo() {

return (
<div>
<div className={styles.PickerDemo}>
<div
className={styles.PickerDemo}
style={{
height: `${pickerProps.height}px`,
}}
>
<Picker
onEmojiClick={(emoji) =>
setTextareaValue(
Expand Down

0 comments on commit a2f0762

Please sign in to comment.