Skip to content

Commit 9e01676

Browse files
authored
Remove grid from framed images (#3907)
1 parent f6cf62a commit 9e01676

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

  • packages/gitbook/src/components/DocumentView

packages/gitbook/src/components/DocumentView/Images.tsx

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -96,36 +96,6 @@ async function ImageBlock(props: {
9696

9797
return (
9898
<div className={tcls('relative', 'overflow-hidden')}>
99-
{/* Frame grid */}
100-
{withFrame && (
101-
<div
102-
className={tcls(
103-
'absolute',
104-
'-top-0.5',
105-
'-left-0.5',
106-
'right-px',
107-
'bottom-px',
108-
'opacity-40',
109-
'dark:opacity-[0.1]',
110-
'bg-[length:24px_24px,24px_24px]',
111-
'bg-[linear-gradient(to_right,_rgb(234,235,238)_1px,_transparent_1px),linear-gradient(to_bottom,_rgb(234,235,238)_1px,_transparent_1px)]',
112-
'dark:bg-[linear-gradient(to_right,_rgb(122,128,139)_1px,_transparent_1px),linear-gradient(to_bottom,_rgb(122,128,139)_1px,_transparent_1px)]',
113-
'bg-repeat'
114-
)}
115-
/>
116-
)}
117-
118-
{/* Shadow overlay */}
119-
{withFrame && (
120-
<div
121-
className={tcls(
122-
'pointer-events-none absolute inset-0 rounded-2xl',
123-
'shadow-[inset_0_0_10px_10px_rgba(255,255,255,0.9)]',
124-
'dark:shadow-[inset_0_0_10px_10px_rgb(29,29,29)]'
125-
)}
126-
/>
127-
)}
128-
12999
<Caption {...props} fit>
130100
<Image
131101
alt={block.data.alt ?? ''}

0 commit comments

Comments
 (0)