) => {
const state = event.currentTarget.checked;
@@ -21,5 +34,12 @@ export const LogContextButtons = (props: Props) => {
[onChangeWrapLines]
);
- return ;
+ return (
+
+
+
+
+ );
};
diff --git a/public/app/features/logs/components/log-context/LogRowContextModal.tsx b/public/app/features/logs/components/log-context/LogRowContextModal.tsx
index 191e81913be..648e78665f7 100644
--- a/public/app/features/logs/components/log-context/LogRowContextModal.tsx
+++ b/public/app/features/logs/components/log-context/LogRowContextModal.tsx
@@ -362,6 +362,11 @@ export const LogRowContextModal: React.FunctionComponent {
+ preEntryElement.current?.scrollIntoView({ block: 'center' });
+ entryElement.current?.scrollIntoView({ block: 'center' });
+ }, [preEntryElement, entryElement]);
+
useLayoutEffect(() => {
const scrollE = scrollElement.current;
if (scrollE == null) {
@@ -373,8 +378,7 @@ export const LogRowContextModal: React.FunctionComponent
-
+