File tree Expand file tree Collapse file tree 3 files changed +18
-8
lines changed
services/backend-api/client/src/features/templates
components/TemplateGalleryModal Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { TemplateGalleryLayout } from "./TemplateGalleryLayout";
88export const TemplateGalleryLoadingSkeleton = ( ) => {
99 return (
1010 < Box >
11- < Skeleton height = "20px" width = "70%" mb = { 4 } />
1211 < TemplateGalleryLayout
1312 templateList = {
1413 < VStack spacing = { 3 } align = "stretch" p = { 1 } >
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ import { convertTemplateMessageComponentToPreviewInput } from "./templatePreview
4343import { TemplateGalleryLayout } from "./TemplateGalleryLayout" ;
4444import { MessageComponentRoot } from "../../../../pages/MessageBuilder/types" ;
4545
46+ const TEMPLATE_GALLERY_HELPER_TEXT =
47+ "Pick a starting point for your message layout. You can customize everything after applying." ;
48+
4649export interface Article {
4750 id : string ;
4851 title ?: string ;
@@ -418,7 +421,14 @@ const TemplateGalleryModalComponent = (props: TemplateGalleryModalProps) => {
418421 }
419422
420423 if ( isLoadingArticles ) {
421- return < TemplateGalleryLoadingSkeleton /> ;
424+ return (
425+ < >
426+ < Text color = "gray.400" mb = { 4 } >
427+ { TEMPLATE_GALLERY_HELPER_TEXT }
428+ </ Text >
429+ < TemplateGalleryLoadingSkeleton />
430+ </ >
431+ ) ;
422432 }
423433
424434 return (
@@ -429,10 +439,11 @@ const TemplateGalleryModalComponent = (props: TemplateGalleryModalProps) => {
429439 Some templates are unavailable until your feed has articles
430440 </ Alert >
431441 ) }
432- < Text color = "gray.400" mb = { 4 } >
433- Pick a starting point for your message layout. You can customize everything after
434- applying.
435- </ Text >
442+ { ! hasNoFeedFields && (
443+ < Text color = "gray.400" mb = { 4 } >
444+ { TEMPLATE_GALLERY_HELPER_TEXT }
445+ </ Text >
446+ ) }
436447 < TemplateGalleryLayout
437448 templateList = {
438449 < Box as = "fieldset" >
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ export const RICH_EMBED_TEMPLATE: Template = {
5454 id : "rich-embed-title" ,
5555 name : "Title" ,
5656 content : linkField
57- ? `## [{{title}}]({{${ linkField } }})${ authorField ? "\n**{{author}}**" : "" } `
58- : `## {{title}}${ authorField ? "\n**{{author}}**" : "" } ` ,
57+ ? `### [{{title}}]({{${ linkField } }})${ authorField ? "\n**{{author}}**" : "" } `
58+ : `### {{title}}${ authorField ? "\n**{{author}}**" : "" } ` ,
5959 } ;
6060
6161 const headerComponent = hasImage
You can’t perform that action at this time.
0 commit comments