From bc21f8ec2f0d1e79990521b00cb8c72d3a760c6d Mon Sep 17 00:00:00 2001 From: daleinen7 Date: Tue, 12 Oct 2021 18:52:16 -0500 Subject: [PATCH] justify tvs to flex-start --- src/components/StoriesList/StoriesList.module.scss | 3 --- static/admin/config.yml | 8 +++++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/StoriesList/StoriesList.module.scss b/src/components/StoriesList/StoriesList.module.scss index 9fb5302..566b785 100644 --- a/src/components/StoriesList/StoriesList.module.scss +++ b/src/components/StoriesList/StoriesList.module.scss @@ -10,14 +10,11 @@ } .stories_list { - overflow-x: auto; width: 100%; ul { overflow-x: auto; - width: 100%; display: flex; flex-flow: row; - justify-content: center; max-width: 1200px; margin: 0 auto; } diff --git a/static/admin/config.yml b/static/admin/config.yml index b958f8a..7d140d3 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -11,6 +11,7 @@ public_folder: /img collections: - name: "story" + label: "Story" extension: "json" create: true @@ -18,7 +19,12 @@ collections: editor: preview: false fields: - - { label: "Title", name: "title", widget: "string" } + - { + label: "Title", + name: "title", + widget: "string", + pattern: ["^.{0,10}$", "Must have at least 20 characters"], + } - { label: "Level", name: "level", widget: "number" } - { label: "Title Card", name: "title-card", widget: "image" } - label: "Authors"