Skip to content

Commit a4c24e6

Browse files
nobody5050Gold856
andauthored
Improve RIOLog UI (#786)
Co-authored-by: Gold856 <[email protected]>
1 parent 796283b commit a4c24e6

File tree

8 files changed

+1753
-398
lines changed

8 files changed

+1753
-398
lines changed
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
body {
2+
scrollbar-gutter: stable;
3+
padding: 0;
4+
}
5+
6+
.toolbar {
7+
background-color: var(--vscode-editor-background);
8+
border-top: 1px solid var(--vscode-panel-border);
9+
padding: 8px;
10+
display: flex;
11+
flex-direction: column;
12+
gap: 8px;
13+
position: fixed;
14+
bottom: 0;
15+
left: 0;
16+
right: 0;
17+
z-index: 100;
18+
}
19+
20+
.status-container {
21+
display: flex;
22+
align-items: center;
23+
margin-bottom: 4px;
24+
}
25+
26+
.connection-status {
27+
width: 16px;
28+
height: 16px;
29+
border-radius: 50%;
30+
margin-right: 8px;
31+
}
32+
33+
.connection-status.connected {
34+
background-color: var(--vscode-testing-iconPassed, #4caf50);
35+
box-shadow: 0 0 5px var(--vscode-testing-iconPassed, #4caf50);
36+
}
37+
38+
.connection-status.disconnected {
39+
background-color: var(--vscode-testing-iconFailed, #f44336);
40+
box-shadow: 0 0 5px var(--vscode-testing-iconFailed, #f44336);
41+
}
42+
43+
.team-number-container {
44+
display: flex;
45+
align-items: center;
46+
gap: 8px;
47+
margin-bottom: 8px;
48+
}
49+
50+
.vscode-textfield[id*='team-number'] {
51+
width: 80px;
52+
}
53+
54+
.search-container {
55+
margin-bottom: 8px;
56+
}
57+
58+
.vscode-textfield[id*='search-input'] {
59+
width: 98%; /* Needed to prevent clipping */
60+
}
61+
62+
.buttons-container {
63+
display: flex;
64+
flex-wrap: wrap;
65+
gap: 8px;
66+
}
67+
68+
.button-group {
69+
display: flex;
70+
flex-wrap: wrap;
71+
gap: 4px;
72+
}
73+
74+
#log-container {
75+
padding: 8px;
76+
overflow-y: auto;
77+
max-height: calc(100vh - 60px);
78+
font-family: var(--vscode-editor-font-family, monospace);
79+
font-size: var(--vscode-editor-font-size, 13px);
80+
line-height: 1.4;
81+
}
82+
83+
.log-entry {
84+
display: flex;
85+
margin-bottom: 4px;
86+
padding: 2px 4px;
87+
border-radius: 2px;
88+
position: relative;
89+
}
90+
91+
.log-entry:hover {
92+
background-color: var(--vscode-list-hoverBackground);
93+
}
94+
95+
.error-log {
96+
border-left: 3px solid var(--vscode-testing-iconFailed, #f44336);
97+
}
98+
99+
.warning-log {
100+
border-left: 3px solid var(--vscode-warningForeground, #ff9800);
101+
}
102+
103+
.print-log {
104+
border-left: 3px solid transparent;
105+
}
106+
107+
.log-message {
108+
display: flex;
109+
align-items: flex-start;
110+
}
111+
112+
.timestamp {
113+
color: var(--vscode-descriptionForeground);
114+
margin-right: 8px;
115+
font-size: 12px;
116+
user-select: none;
117+
}
118+
119+
.message-content {
120+
flex: 1;
121+
word-break: break-word;
122+
}
123+
124+
.toggle-button {
125+
display: inline-block;
126+
width: 12px;
127+
height: 12px;
128+
cursor: pointer;
129+
position: relative;
130+
}
131+
132+
.toggle-button.collapsed::before {
133+
content: '►';
134+
font-size: 10px;
135+
color: var(--vscode-descriptionForeground);
136+
}
137+
138+
.toggle-button.expanded::before {
139+
content: '▼';
140+
font-size: 10px;
141+
color: var(--vscode-descriptionForeground);
142+
}
143+
144+
.error-content {
145+
margin-left: 12px;
146+
}
147+
148+
/* Rules to properly handle error collapsing in RioLog */
149+
.error-content.collapsed .stack-trace,
150+
.error-content.collapsed .location-info {
151+
display: none;
152+
}
153+
154+
.stack-trace,
155+
.location-info {
156+
margin-left: 12px;
157+
color: var(--vscode-descriptionForeground);
158+
font-size: 12px;
159+
}

0 commit comments

Comments
 (0)