forked from hoyipyik/traceLens
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtraceFlame.css
More file actions
202 lines (179 loc) · 3.6 KB
/
traceFlame.css
File metadata and controls
202 lines (179 loc) · 3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
/* Flame Graph Container Styles - Height-based approach */
.flame-container {
position: fixed;
bottom: 0;
left: 271px; /* Match the sidebar width */
width: calc(100% - 271px);
background: white;
border: 1px solid #ddd;
border-radius: 4px 4px 0 0;
box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
display: flex;
flex-direction: column;
z-index: 9999;
transition: height 0.3s ease;
height: 10px; /* Initially just show the drag handle */
will-change: height;
transform: translateZ(0); /* Hardware acceleration */
backface-visibility: hidden; /* Reduce paints */
overflow: hidden; /* Hide overflow initially */
}
/* When active, increase height */
.flame-container.active {
height: calc(80vh - 36px); /* 80% of viewport height minus top position */
overflow: hidden; /* Hide overflow when fully expanded */
}
/* When in minimized but scrollable state */
.flame-container.scrollable {
height: 300px; /* Partial height when in scrollable mode */
overflow-y: auto; /* Allow vertical scrolling */
}
.drag-handle {
height: 10px;
background: #f1f3f5;
cursor: ns-resize;
border-bottom: 1px solid #e9ecef;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
touch-action: none;
user-select: none;
position: sticky;
top: 0;
z-index: 2;
}
.drag-handle:hover {
background: #e9ecef;
}
.drag-indicator {
width: 60px;
height: 4px;
background: #ced4da;
border-radius: 2px;
pointer-events: none;
}
.controls {
height: 32px;
padding: 4px 8px;
background: #f8f9fa;
border-bottom: 1px solid #e9ecef;
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
position: sticky;
/* top: 10px; */
z-index: 1;
}
.control-btn {
font-size: 11px;
padding: 2px 6px;
background: white;
border: 1px solid #dee2e6;
border-radius: 3px;
cursor: pointer;
color: #495057;
height: 24px;
line-height: 1;
}
.control-btn:hover {
background: #f1f3f5;
}
.control-btn.active {
background: #e7f5ff;
border-color: #74c0fc;
color: #1864ab;
}
/* New toggle button for scrollable mode */
.control-btn.toggle-scroll {
background: #f8f9fa;
border-color: #ced4da;
}
.control-btn.toggle-scroll.active {
background: #e7f5ff;
border-color: #74c0fc;
}
.search-box {
font-size: 11px;
padding: 2px 6px;
border: 1px solid #dee2e6;
border-radius: 3px;
height: 24px;
width: 120px;
}
#selection-count {
font-size: 11px;
color: #868e96;
margin-left: auto;
}
.content {
flex: 1;
display: flex;
flex-direction: column;
position: relative;
}
#chart {
flex: 1;
overflow: auto;
padding: 10px;
min-height: 150px;
max-height: 48vh;
}
/* Details panel */
#details {
position: relative;
height: 270px;
overflow: auto;
border-top: 1px solid #e9ecef;
background: #f8f9fa;
font-size: 12px;
padding: 10px;
}
#details h4 {
margin-top: 0;
font-size: 14px;
color: #343a40;
}
#details table {
width: 100%;
border-collapse: collapse;
}
#details th {
text-align: right;
padding: 3px 8px;
vertical-align: top;
color: #495057;
width: 120px;
font-weight: normal;
}
#details td {
padding: 3px 8px;
vertical-align: top;
word-break: break-word;
color: #343a40;
}
#details tr:nth-child(even) {
background: #f1f3f5;
}
#details pre {
margin: 0;
white-space: pre-wrap;
font-size: 11px;
background: #f8f9fa;
border: 1px solid #e9ecef;
padding: 6px;
border-radius: 3px;
}
/* State indicator */
.flame-state-indicator {
position: absolute;
top: 0;
right: 10px;
font-size: 10px;
color: #868e96;
background: rgba(255, 255, 255, 0.7);
padding: 2px 5px;
border-radius: 0 0 3px 3px;
z-index: 10;
}