File tree Expand file tree Collapse file tree 2 files changed +21
-46
lines changed Expand file tree Collapse file tree 2 files changed +21
-46
lines changed Original file line number Diff line number Diff line change @@ -188,22 +188,20 @@ export const Block: React.FC<Block> = props => {
188188 className = "notion-bookmark"
189189 href = { blockValue . properties . link [ 0 ] [ 0 ] }
190190 >
191- < div role = "button" className = "notion-bookmark-inner" >
192- < div >
193- < div className = "notion-bookmark-title" >
194- { renderChildText ( blockValue . properties . title ) }
195- </ div >
196- < div className = "notion-bookmark-description" >
197- { renderChildText ( blockValue . properties . description ) }
198- </ div >
199- < div className = "notion-bookmark-link" >
200- < img src = { blockValue . format . bookmark_icon } />
201- < div > { renderChildText ( blockValue . properties . link ) } </ div >
202- </ div >
191+ < div >
192+ < div className = "notion-bookmark-title" >
193+ { renderChildText ( blockValue . properties . title ) }
203194 </ div >
204- < div >
205- < img src = { blockValue . format . bookmark_cover } />
195+ < div className = "notion-bookmark-description" >
196+ { renderChildText ( blockValue . properties . description ) }
206197 </ div >
198+ < div className = "notion-bookmark-link" >
199+ < img src = { blockValue . format . bookmark_icon } />
200+ < div > { renderChildText ( blockValue . properties . link ) } </ div >
201+ </ div >
202+ </ div >
203+ < div >
204+ < img src = { blockValue . format . bookmark_cover } />
207205 </ div >
208206 </ a >
209207 </ div >
Original file line number Diff line number Diff line change @@ -243,41 +243,25 @@ h3 {
243243}
244244
245245.notion-bookmark {
246- display : block;
247- color : inherit;
248246 text-decoration : none;
249- flex-grow : 1 ;
250- min-width : 0px ;
251- }
252-
253- .notion-bookmark-inner {
254- user-select : none;
255- transition : background 120ms ease-in 0s ;
256- cursor : pointer;
257- width : 100% ;
258- display : flex;
259- flex-wrap : wrap-reverse;
260- align-items : stretch;
261- text-align : left;
262- overflow : hidden;
263247 border : 1px solid rgba (55 , 53 , 47 , 0.16 );
264248 border-radius : 3px ;
265- position : relative ;
266- color : inherit ;
267- fill : inherit ;
249+ display : flex ;
250+ overflow : hidden ;
251+ user-select : none ;
268252}
269253
270- .notion-bookmark-inner > div : first-child {
254+ .notion-bookmark > div : first-child {
271255 flex : 4 1 180px ;
272256 padding : 12px 14px 14px ;
273257 overflow : hidden;
274258 text-align : left;
259+ color : rgb (55 , 53 , 47 );
275260}
276261
277262.notion-bookmark-title {
278263 font-size : 14px ;
279264 line-height : 20px ;
280- color : rgb (55 , 53 , 47 );
281265 white-space : nowrap;
282266 overflow : hidden;
283267 text-overflow : ellipsis;
288272.notion-bookmark-description {
289273 font-size : 12px ;
290274 line-height : 16px ;
291- color : rgba ( 55 , 53 , 47 , 0.6 ) ;
275+ opacity : 0.6 ;
292276 height : 32px ;
293277 overflow : hidden;
294278}
@@ -314,27 +298,20 @@ h3 {
314298 text-overflow : ellipsis;
315299}
316300
317- .notion-bookmark-inner > div : last-child {
301+ .notion-bookmark > div : last-child {
318302 flex : 1 1 180px ;
319- display : block;
320303 position : relative;
321304}
322305
323- .notion-bookmark-inner > div : last-child img {
324- display : block;
306+ .notion-bookmark > div : last-child img {
325307 object-fit : cover;
326- border-radius : 1px ;
327308 width : 100% ;
328309 height : 100% ;
329310 position : absolute;
330- top : 0px ;
331- left : 0px ;
332- right : 0px ;
333- bottom : 0px ;
334311}
335312
336313@media (max-width : 640px ) {
337- .notion-bookmark-inner > div : last-child {
314+ .notion-bookmark > div : last-child {
338315 display : none;
339316 }
340317
You can’t perform that action at this time.
0 commit comments