Skip to content

Commit

Permalink
Change css from string to list of string
Browse files Browse the repository at this point in the history
  • Loading branch information
philipws committed Apr 29, 2024
1 parent 6e0c392 commit 7188b0b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,20 @@
"S": "Example Table With Large Format Text"
},
"css": {
"S": "table { border-collapse: collapse; } td { border: solid 1px black; margin: 0; padding: 1rem; min-height: 1px; } img { max-width: 256px; max-height: 256px; width: 256px; height: 256px; } p { font-size: 2rem; line-height: 2rem; font-weight: bold; }"
"L": [
{
"S": "table { border-collapse: collapse; }"
},
{
"S": "td { border: solid 1px black; margin: 0; padding: 1rem; min-height: 1px; }"
},
{
"S": "img { max-width: 256px; max-height: 256px; width: 256px; height: 256px; }"
},
{
"S": "p { font-size: 2rem; line-height: 2rem; font-weight: bold; }"
}
]
},
"type": {
"S": "tableWithImageLeft"
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/lib/features/readable/printStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class dt_readablePrintStyles extends Construct {
id: GraphqlType.string({ isRequired: true }),
name: GraphqlType.string({ isRequired: true }),
type: GraphqlType.string({ isRequired: true }),
css: GraphqlType.string(),
css: GraphqlType.string({ isList: true }),
default: GraphqlType.boolean(),
},
directives: [Directive.custom("@aws_cognito_user_pools")],
Expand Down

0 comments on commit 7188b0b

Please sign in to comment.