Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nusuke authored and nusuke committed Mar 9, 2024
1 parent b432821 commit 89d56cc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/app/feature/jsonPreview/parentheses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export function surroundParentheses(
<>
<div className="jsonMiddleWrapper">
<span className="surroundChar--start">{surroundChars.start}</span>
<details open={true} className="jsonObjectWrapper">
<summary>
<details open={true} className="jsonObjectDetail">
<summary className="jsonObjectSummary">
{surroundChars.start}
{text.length}
{surroundChars.end}
Expand Down
33 changes: 13 additions & 20 deletions src/styles/json-preview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ body {
flex-direction: column;
}

.jsonObjectWrapper {
padding-left: 8px;
}

.jsonKey {
color: lightsteelblue;

Expand Down Expand Up @@ -87,6 +83,7 @@ body {
&::before,
&::after {
content: '"';
color: rgb(70, 70, 70);
}
}
}
Expand All @@ -95,23 +92,23 @@ body {
display: flex;
}

.jsonObject {
&Detail {
padding-left: 8px;
}

&Summary {
color: rgb(70, 70, 70);
// font-size: small;
}
}

.jsonMiddle {
&Key {
@extend .jsonKey;
}
&Value {
padding-left: 8px;

// :not(detail[open]) {
// display: flex;
// }

// .jsonObjectWrapper {
// .jsonObject {
// // position: relative;
// // left: -80px;
// }
// }
}

&Wrapper {
Expand All @@ -124,14 +121,10 @@ body {
left: 2px;
height: calc(100% - 30px);
width: 1px;
border-left: dotted 1px gray;
border-left: dotted 0.5px rgb(70, 70, 70);
}
}
}
summary {
color: gray;
// padding-left: 8px;
}

// FIXME リファクタで場所を移す
.queryInput {
Expand Down

0 comments on commit 89d56cc

Please sign in to comment.