Skip to content

Commit

Permalink
Fix events demo
Browse files Browse the repository at this point in the history
  • Loading branch information
komarovalexander committed Dec 27, 2019
1 parent 9245e71 commit ffbaf67
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
28 changes: 15 additions & 13 deletions src/Demos/EventsDemo/EventsDemo.scss
Original file line number Diff line number Diff line change
@@ -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;
}
}
}
}
4 changes: 2 additions & 2 deletions src/Demos/EventsDemo/EventsDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const EventsDemo: React.FC = () => {
changeEvents((prevValue) => ([{ type: event, data: `${JSON.stringify(eventData)}` }, ...prevValue]));
};
return (
<>
<div className='events-demo'>
<Table
{...option}
data={data}
Expand All @@ -59,7 +59,7 @@ const EventsDemo: React.FC = () => {
</div>
))}
</div>
</>
</div>
);
};

Expand Down

0 comments on commit ffbaf67

Please sign in to comment.