From ffbaf67fe0c6ab0d5e4e81f39fa6b9e1c0006a67 Mon Sep 17 00:00:00 2001 From: Komarov Alexander Date: Fri, 27 Dec 2019 19:41:55 +0100 Subject: [PATCH] Fix events demo --- src/Demos/EventsDemo/EventsDemo.scss | 28 +++++++++++++++------------- src/Demos/EventsDemo/EventsDemo.tsx | 4 ++-- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/Demos/EventsDemo/EventsDemo.scss b/src/Demos/EventsDemo/EventsDemo.scss index b7c4862f..5ab4c86c 100644 --- a/src/Demos/EventsDemo/EventsDemo.scss +++ b/src/Demos/EventsDemo/EventsDemo.scss @@ -1,19 +1,21 @@ -.ka-tbody{ - max-height: 300px; -} +.events-demo{ + .ka-tbody{ + max-height: 300px; + } -.events{ - margin: 20px 0 0 0; - max-height: 200px; - overflow: auto; + .events{ + margin: 20px 0 0 0; + max-height: 200px; + overflow: auto; - > div{ - padding: 5px; - background-color: #d1d5d7; - border: 1px solid #f1f5f7; + > div{ + padding: 5px; + background-color: #d1d5d7; + border: 1px solid #f1f5f7; - .type{ - color: #00f; + .type{ + color: #00f; + } } } } \ No newline at end of file diff --git a/src/Demos/EventsDemo/EventsDemo.tsx b/src/Demos/EventsDemo/EventsDemo.tsx index 70f7c39a..ed718a21 100644 --- a/src/Demos/EventsDemo/EventsDemo.tsx +++ b/src/Demos/EventsDemo/EventsDemo.tsx @@ -44,7 +44,7 @@ const EventsDemo: React.FC = () => { changeEvents((prevValue) => ([{ type: event, data: `${JSON.stringify(eventData)}` }, ...prevValue])); }; return ( - <> +
{ ))} - + ); };