Skip to content

Commit a52e8a3

Browse files
author
minjk-bl
committed
Fix Information app's bug and Edit data table format
1 parent e1c4129 commit a52e8a3

File tree

3 files changed

+490
-127
lines changed

3 files changed

+490
-127
lines changed

visualpython/css/m_apps/information.css

Lines changed: 69 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
height: 30px;
3232
}
3333
/* dropdown menu */
34-
.vp-dropdown {
34+
/* .vp-dropdown {
3535
position: relative;
3636
display: inline-block;
3737
}
@@ -62,7 +62,6 @@
6262
-ms-user-select: none;
6363
user-select: none;
6464
text-overflow: ellipsis;
65-
/* overflow: hidden; */
6665
white-space: nowrap;
6766
padding: 0px 5px;
6867
}
@@ -88,17 +87,76 @@
8887
cursor: pointer;
8988
height: 30px;
9089
font-size: 13px;
91-
}
92-
.vp-variable-preview {
90+
} */
91+
.vp-variable-table {
9392
margin-top: 5px;
94-
align-content: baseline;
93+
background: var(--vp-border-gray-color);
94+
border: 1px solid var(--vp-border-gray-color);
95+
overflow: auto;
9596
}
96-
.vp-variable-preview thead th {
97+
.vp-variable-table table {
98+
border-collapse: separate;
99+
margin-top: 0px;
100+
margin-left: 0px;
101+
color: var(--vp-font-primary);
102+
font-size: 13px;
103+
}
104+
.vp-variable-table table th {
105+
/* no-selection for th */
106+
-webkit-touch-callout: none;
107+
-webkit-user-select: none;
108+
-khtml-user-select: none;
109+
-moz-user-select: none;
110+
-ms-user-select: none;
111+
user-select: none;
112+
}
113+
.vp-variable-table thead th {
114+
position: sticky;
115+
top: 0;
116+
background-color: var(--vp-background-color);
117+
border-bottom: 1px solid var(--vp-border-gray-color);
118+
119+
text-align: right;
120+
text-overflow: ellipsis;
121+
overflow: hidden;
122+
height: 30px !important;
123+
min-width: 80px;
124+
white-space: nowrap;
125+
}
126+
.vp-variable-table tbody tr:nth-child(odd) {
127+
background: #F5F5F5;
128+
}
129+
.vp-variable-table tbody tr:nth-child(even) {
130+
background: var(--vp-background-color);
131+
}
132+
.vp-variable-table th.selected {
133+
/* color: var(--vp-highlight-color); */
134+
background: #add3fd;
135+
}
136+
.vp-variable-table th:hover {
97137
cursor: pointer;
138+
/* background: var(--vp-light-gray-color); */
139+
/* background: rgba(66, 165, 245, 0.2); */
98140
}
99-
.vp-variable-preview thead th.selected {
100-
background-color: var(--vp-highlight-color);
101-
color: var(--vp-background-color);
141+
142+
/* Row Hover */
143+
.vp-variable-table tbody tr:hover {
144+
background-color: rgba(66, 165, 245, 0.2);
145+
}
146+
147+
/* Column Hover */
148+
.vp-variable-table tr th:nth-child(1) {
149+
min-width: 30px !important;
150+
}
151+
152+
.vp-variable-table-more {
153+
margin: 10px;
154+
cursor: pointer;
155+
padding: 3px;
156+
background-color: white;
157+
}
158+
.vp-variable-table-more:hover {
159+
background-color: var(--vp-gray-color);
102160
}
103161
.vp-information-preview-header {
104162
height: 30px;
@@ -136,6 +194,8 @@
136194
}
137195
.vp-information-preview-content {
138196
align-content: baseline;
197+
position: relative;
198+
height: 100%;
139199
}
140200
.vp-information-preview-box img {
141201
width: 100%;

visualpython/html/m_apps/information.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<hr style="margin: 5px 0;"/>
2020
<div class="vp-information-toolbox">
2121
</div>
22-
<div id="variablePreview" class="vp-variable-preview rendered_html vp-grid-border-box vp-scrollbar vp-no-selection">
22+
<div id="variablePreview" class="vp-variable-table vp-scrollbar vp-no-selection">
2323

2424
</div>
2525
</div>
@@ -35,7 +35,7 @@
3535
<div id="informationPreviewTitle" class="vp-information-preview-title">
3636
</div>
3737
<hr style="margin: 5px 0;"/>
38-
<div id="informationPreview" class="vp-information-preview-content rendered_html vp-center"></div>
38+
<div id="informationPreview" class="vp-information-preview-content vp_rendered_html vp-center"></div>
3939
</div>
4040
</div>
4141
</div>

0 commit comments

Comments
 (0)