File tree Expand file tree Collapse file tree 4 files changed +17
-19
lines changed Expand file tree Collapse file tree 4 files changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,6 @@ export default {
1414 components: { NotionTextRenderer },
1515 computed: {
1616 ... blockComputed,
17- f () {
18- // format with defaults if empty
19- return {
20- display_source: this .format ? .display_source ?? undefined ,
21- block_aspect_ratio: this .format ? .block_aspect_ratio ?? undefined ,
22- block_height: this .format ? .block_height ?? 1 ,
23- block_width: this .format ? .block_width ?? 1 ,
24- };
25- },
2617 src () {
2718 return this .type === " figma"
2819 ? this .properties .source [0 ][0 ]
Original file line number Diff line number Diff line change @@ -18,15 +18,6 @@ export default {
1818 alt () {
1919 return this .caption ? .[0 ][0 ];
2020 },
21- f () {
22- // format with defaults if empty
23- return {
24- display_source: this .format ? .display_source ?? undefined ,
25- block_aspect_ratio: this .format ? .block_aspect_ratio ?? undefined ,
26- block_height: this .format ? .block_height ?? 1 ,
27- block_width: this .format ? .block_width ?? 1 ,
28- };
29- },
3021 src () {
3122 return this .mapImageUrl (this .properties ? .source [0 ][0 ], this .block );
3223 },
Original file line number Diff line number Diff line change @@ -36,18 +36,33 @@ export const blockComputed = {
3636 format ( ) {
3737 return this . value ?. format ;
3838 } ,
39+ f ( ) {
40+ // format with defaults if empty
41+ return {
42+ block_aspect_ratio : this . format ?. block_aspect_ratio ,
43+ block_height : this . format ?. block_height ?? 1 ,
44+ block_width : this . format ?. block_width ?? 1 ,
45+ block_color : this . format ?. block_color ,
46+ bookmark_icon : this . format ?. bookmark_icon ,
47+ bookmark_cover : this . format ?. bookmark_cover ,
48+ display_source : this . format ?. display_source ,
49+ } ;
50+ } ,
3951 icon ( ) {
4052 return this . format ?. page_icon || "" ;
4153 } ,
4254 width ( ) {
43- return this . format ?. block_width || undefined ;
55+ return this . format ?. block_width ;
4456 } ,
4557 properties ( ) {
4658 return this . value ?. properties ;
4759 } ,
4860 caption ( ) {
4961 return this . properties ?. caption ;
5062 } ,
63+ description ( ) {
64+ return this . properties ?. description ;
65+ } ,
5166 title ( ) {
5267 return this . properties ?. title ;
5368 } ,
Original file line number Diff line number Diff line change @@ -505,6 +505,7 @@ img.notion-page-icon {
505505}
506506.notion-callout-text {
507507 margin-left : 8px ;
508+ white-space : pre-line; /* edit: break on carriage returns in callout text */
508509}
509510
510511.notion-toggle {
You can’t perform that action at this time.
0 commit comments