Skip to content

Commit fb933fc

Browse files
authored
[clang][dataflow] Show triangle in <details> element. (#67431)
Also, change the mouse cursor into a pointer instead of a text cursor. This makes it more discoverable that the element can be opened and closed.
1 parent 7ad3825 commit fb933fc

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

clang/lib/Analysis/FlowSensitive/HTMLLogger.css

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,21 @@ code.line:has(.bb-select):before {
123123
font-size: x-small;
124124
flex-grow: 1;
125125
}
126-
.value summary {
126+
.value > summary {
127127
background-color: #ace;
128128
display: flex;
129-
justify-content: space-between;
129+
cursor: pointer;
130+
}
131+
.value > summary::before {
132+
content: '►';
133+
margin-right: 0.5em;
134+
font-size: 0.9em;
135+
}
136+
.value[open] > summary::before {
137+
content: '▼';
138+
}
139+
.value > summary > .location {
140+
margin-left: auto;
130141
}
131142
.value .address {
132143
font-size: xx-small;

clang/lib/Analysis/FlowSensitive/HTMLLogger.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<template data-if="v.value_id"><span class="address">#{{v.value_id}}</span></template>
1919
</span>
2020
<template data-if="v.location">
21-
<span>{{v.type}} <span class="address">@{{v.location}}</span></span>
21+
<span class="location">{{v.type}} <span class="address">@{{v.location}}</span></span>
2222
</template>
2323
</summary>
2424
<template

0 commit comments

Comments
 (0)