Skip to content

Commit 87d55fa

Browse files
SharonStratsGPT-5.6 Luna
andcommitted
Humanreadable improvement fixes and refresh for release
- restore pdf rendering, use chrome viewer - humanreadable panes on mobile, no scroll fit the whole page - desktop - extend the page - Support JSON - no special treatment now Prompt: pdf is not appearing - chrome blocked it worked in main branch please investigate and fix Co-authored-by: GPT-5.6 Luna <gpt-5.6-luna@openai.com>
1 parent 6222312 commit 87d55fa

3 files changed

Lines changed: 360 additions & 45 deletions

File tree

‎src/humanReadablePane.css‎

Lines changed: 42 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
.human-readable-pane {
22
display: flex;
33
flex-direction: column;
4+
flex: 1 1 auto;
5+
height: 100%;
46
padding: 0 40px;
57
margin: 0;
8+
min-height: 0;
69
min-width: 0;
710
width: 100%;
811
max-width: 100%;
912
box-sizing: border-box;
10-
overflow: hidden;
13+
overflow: auto;
1114
}
1215

1316
.human-readable-pane__container {
14-
display: block;
17+
display: flex;
18+
flex: 1 1 auto;
19+
flex-direction: column;
20+
min-height: 0;
1521
min-width: 0;
1622
width: 100%;
1723
max-width: 100%;
@@ -25,7 +31,7 @@
2531
display: block;
2632
border: 1px solid var(--solid-ui-color-slate-200, #E2E8F0);
2733
padding: 1rem;
28-
height: var(--human-readable-pane-height, 30rem);
34+
height: var(--human-readable-pane-height, 480px);
2935
min-width: 0;
3036
max-width: 100%;
3137
width: 100%;
@@ -34,13 +40,22 @@
3440
overflow: auto;
3541
}
3642

43+
.human-readable-pane__frame--markdown,
44+
.human-readable-pane__frame--plain-text {
45+
flex: 1 1 auto;
46+
height: auto;
47+
min-height: 100%;
48+
max-height: 100%;
49+
resize: none;
50+
}
51+
3752
.human-readable-pane__frame--iframe {
3853
display: block;
3954
padding: 0;
40-
overflow: auto;
55+
overflow: hidden;
4156
width: 100%;
4257
max-width: 100%;
43-
min-height: 18rem;
58+
min-height: 0;
4459
box-sizing: border-box;
4560
background: var(--color-background, white);
4661
}
@@ -53,7 +68,7 @@ solid-ui-file-explorer-provider > .paneDiv.human-readable-pane--iframe {
5368
flex: 1 1 0%;
5469
height: 100%;
5570
min-height: 0;
56-
overflow: hidden;
71+
overflow: visible;
5772
}
5873

5974
.human-readable-pane__container--iframe {
@@ -64,12 +79,18 @@ solid-ui-file-explorer-provider > .paneDiv.human-readable-pane--iframe {
6479
}
6580

6681
.human-readable-pane__container--iframe > .human-readable-pane__frame--iframe {
67-
flex: 1 1 0%;
68-
height: auto;
69-
min-height: 0;
82+
flex: 1 1 auto;
83+
height: 480px;
84+
min-height: 288px;
7085
resize: none;
7186
}
7287

88+
.human-readable-pane__frame--markdown,
89+
.human-readable-pane__frame--plain-text {
90+
overflow: visible;
91+
max-height: none;
92+
}
93+
7394
.human-readable-pane__frame--markdown {
7495
overflow-wrap: anywhere;
7596
word-break: break-word;
@@ -128,6 +149,12 @@ solid-ui-file-explorer-provider > .paneDiv.human-readable-pane--iframe {
128149
min-width: 0;
129150
}
130151

152+
.human-readable-pane[data-layout='mobile'] .human-readable-pane__frame--markdown,
153+
.human-readable-pane[data-layout='mobile'] .human-readable-pane__frame--plain-text {
154+
min-height: 100%;
155+
max-height: none;
156+
}
157+
131158
.human-readable-pane[data-layout='mobile'] {
132159
padding: 0;
133160
}
@@ -141,8 +168,9 @@ solid-ui-file-explorer-provider > .paneDiv.human-readable-pane--iframe {
141168
.human-readable-pane[data-layout='mobile'] .human-readable-pane__frame--iframe {
142169
width: 100%;
143170
max-width: 100%;
144-
min-height: 0;
145-
height: max(16rem, min(var(--human-readable-pane-height, 30rem), 75vh));
171+
flex: 0 0 auto;
172+
min-height: 100vh;
173+
height: 100vh;
146174
}
147175

148176
@media (max-width: 576px) {
@@ -165,7 +193,8 @@ solid-ui-file-explorer-provider > .paneDiv.human-readable-pane--iframe {
165193
.human-readable-pane__frame--iframe {
166194
width: 100%;
167195
max-width: 100%;
168-
min-height: 0;
169-
height: max(16rem, min(var(--human-readable-pane-height, 30rem), 75vh));
196+
flex: 0 0 auto;
197+
min-height: 100vh;
198+
height: 100vh;
170199
}
171200
}

0 commit comments

Comments
 (0)