move scroll down to the events under header (#55)
This commit is contained in:
Родитель
a3dcd3ad03
Коммит
cccd7a9e14
|
@ -48,7 +48,6 @@
|
||||||
|
|
||||||
.pnp-detail-list {
|
.pnp-detail-list {
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
.list-header {
|
.list-header {
|
||||||
|
@ -230,6 +229,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.scrollable-sm {
|
.scrollable-sm {
|
||||||
height: calc(100vh - 350px);
|
height: calc(100vh - 392px);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
|
@ -231,7 +231,7 @@ export default class DeviceEventsPerInterfaceComponent extends React.Component<D
|
||||||
role="feed"
|
role="feed"
|
||||||
isReverse={true}
|
isReverse={true}
|
||||||
>
|
>
|
||||||
<section role="list" className="list-content scrollable-sm">
|
<section role="list" className="list-content">
|
||||||
{this.renderEvents(context)}
|
{this.renderEvents(context)}
|
||||||
</section>
|
</section>
|
||||||
</InfiniteScroll>
|
</InfiniteScroll>
|
||||||
|
@ -252,6 +252,7 @@ export default class DeviceEventsPerInterfaceComponent extends React.Component<D
|
||||||
<span className="column-value">{context.t(ResourceKeys.deviceEvents.columns.value)}</span>
|
<span className="column-value">{context.t(ResourceKeys.deviceEvents.columns.value)}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="scrollable-sm">
|
||||||
{
|
{
|
||||||
events && events.map((event: Message, index) => {
|
events && events.map((event: Message, index) => {
|
||||||
const matchingSchema = this.props.telemetrySchema.filter(schema => schema.telemetryModelDefinition.name ===
|
const matchingSchema = this.props.telemetrySchema.filter(schema => schema.telemetryModelDefinition.name ===
|
||||||
|
@ -272,6 +273,7 @@ export default class DeviceEventsPerInterfaceComponent extends React.Component<D
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче