Skip to content

Commit 7c48e06

Browse files
committed
use css annotations
1 parent c0d552f commit 7c48e06

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

db/books.cds

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ entity Books : cuid, managed {
2828

2929
annotate Attachments with @UI: {
3030
LineItem : [
31-
{Value: content},
32-
{Value: fileName},
33-
{Value: status},
34-
{Value: createdAt},
35-
{Value: createdBy},
31+
{Value: content, @HTML5.CssDefaults: {width: '25%'}},
32+
{Value: fileName, @HTML5.CssDefaults: {width: '25%'}},
33+
{Value: mimeType, @HTML5.CssDefaults: {width: '10%'}},
34+
{Value: status, @HTML5.CssDefaults: {width: '10%'}},
35+
{Value: createdAt, @HTML5.CssDefaults: {width: '20%'}},
36+
{Value: createdBy, @HTML5.CssDefaults: {width: '15%'}},
3637
{Value: note}
3738
]
3839
} {

0 commit comments

Comments
 (0)