From 874d95c7af15d79843180e85efcb0132efa3aec3 Mon Sep 17 00:00:00 2001 From: Andrea Jiang Date: Sat, 30 Dec 2023 14:49:20 +0100 Subject: [PATCH] Add 'Replace' functionality to incoming logs using editable text for JSON leafs --- frontend/index.css | 12 +++ frontend/index.html | 206 ++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 210 insertions(+), 8 deletions(-) diff --git a/frontend/index.css b/frontend/index.css index 8e400bfc3..74cb2ec44 100644 --- a/frontend/index.css +++ b/frontend/index.css @@ -80,4 +80,16 @@ button { border-radius: 5px; margin-top: 5px; overflow: auto; +} + +/* EditableText*/ +/* Style for spans with text content */ +.editable-text-span { + border: 1px solid #000; +} + +/* Style for empty spans with padding */ +.editable-text-span:empty { + padding-left: 10px; + padding-right: 10px; } \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index c20aced9d..2f4629159 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -19,14 +19,16 @@