File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
packages/notion-to-jsx/src/components/Renderer/components/Bookmark Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ const Bookmark: React.FC<BookmarkProps> = ({ url }) => {
101
101
{ ogData ?. favicon && (
102
102
< img src = { ogData . favicon } alt = "" className = { favicon } />
103
103
) }
104
- < span className = { urlText } > { ogData ?. url || '' } </ span >
104
+ < div className = { urlText } > { ogData ?. url || '' } </ div >
105
105
</ div >
106
106
</ div >
107
107
{ ogData ?. image && (
Original file line number Diff line number Diff line change @@ -36,6 +36,11 @@ export const previewContainer = style({
36
36
justifyContent : 'center' ,
37
37
maxHeight : '8rem' ,
38
38
overflow : 'hidden' ,
39
+ '@media' : {
40
+ '(max-width: 420px)' : {
41
+ display : 'none' ,
42
+ } ,
43
+ } ,
39
44
} ) ;
40
45
41
46
export const previewImage = style ( {
@@ -55,7 +60,9 @@ export const title = style({
55
60
minHeight : '1.5rem' ,
56
61
overflow : 'hidden' ,
57
62
textOverflow : 'ellipsis' ,
58
- whiteSpace : 'nowrap' ,
63
+ display : '-webkit-box' ,
64
+ WebkitLineClamp : 1 ,
65
+ WebkitBoxOrient : 'vertical' ,
59
66
} ) ;
60
67
61
68
export const description = style ( {
@@ -93,4 +100,6 @@ export const urlText = style({
93
100
whiteSpace : 'nowrap' ,
94
101
textOverflow : 'ellipsis' ,
95
102
maxWidth : '100%' ,
103
+ width : '1px' ,
104
+ flexGrow : 1 ,
96
105
} ) ;
You can’t perform that action at this time.
0 commit comments