Skip to content

Commit 2191da8

Browse files
authored
feat: adjust overlay scrollbar position by changing where padding is applied (#41)
1 parent d30fc4c commit 2191da8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/embed-popup/popup-view.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const PopupView = ({
101101

102102
return (
103103
<div ref={ref} inert={disabled} className="flex h-full w-full flex-col overflow-hidden">
104-
<div className="relative flex h-full shrink-1 grow-1 flex-col p-1">
104+
<div className="relative flex h-full shrink-1 grow-1 flex-col py-1">
105105
<motion.div
106106
className={cn(
107107
'bg-bg2 dark:bg-bg1 pointer-events-none absolute z-10 flex aspect-[1.5] w-64 items-center justify-center rounded-2xl border border-transparent transition-colors',
@@ -147,7 +147,7 @@ export const PopupView = ({
147147
{/* Transcript */}
148148
<div
149149
ref={transcriptRef}
150-
className="flex flex-1 flex-col overflow-y-auto [mask-image:linear-gradient(0deg,rgba(0,0,0,0.2)_0%,rgba(0,0,0,1)_5%,rgba(0,0,0,1)_95%,rgba(0,0,0,0)_100%)] py-2"
150+
className="flex flex-1 flex-col overflow-y-auto [mask-image:linear-gradient(0deg,rgba(0,0,0,0.2)_0%,rgba(0,0,0,1)_5%,rgba(0,0,0,1)_95%,rgba(0,0,0,0)_100%)] px-1 py-2"
151151
>
152152
<div className="flex flex-1 flex-col justify-end gap-2 pt-10">
153153
<AnimatePresence>
@@ -168,7 +168,7 @@ export const PopupView = ({
168168

169169
<div
170170
aria-label="Voice assistant controls"
171-
className="bg-bg1 border-separator1 relative flex h-12 shrink-0 grow-0 items-center gap-1 rounded-full border px-1 drop-shadow-md"
171+
className="bg-bg1 border-separator1 relative mx-1 flex h-12 shrink-0 grow-0 items-center gap-1 rounded-full border px-1 drop-shadow-md"
172172
>
173173
<div className="flex gap-1">
174174
{visibleControls.microphone ? (

0 commit comments

Comments
 (0)