Browse Source

Merge pull request #165 from Hexrt/main

fix: highlight red-dashed border display
Aykut Saraç 2 năm trước cách đây
mục cha
commit
046686ba44
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      src/components/CustomNode/styles.tsx

+ 3 - 1
src/components/CustomNode/styles.tsx

@@ -31,6 +31,7 @@ export const StyledForeignObject = styled.foreignObject<{
   &.searched {
     border: 2px solid ${({ theme }) => theme.TEXT_POSITIVE};
     border-radius: 2px;
+    box-sizing: border-box;
   }
 
   .highlight {
@@ -69,7 +70,8 @@ export const StyledKey = styled.span<{
   font-size: ${({ parent }) => parent && "14px"};
   overflow: hidden;
   text-overflow: ellipsis;
-  padding: ${({ parent }) => parent && "10px"};
+  padding: ${({ parent }) => parent && "7px"};
+  height: 18px;
 `;
 
 export const StyledRow = styled.span.attrs<{