Author: martinboehme Date: 2023-09-28T14:50:51+02:00 New Revision: 53e3180b6e02bbb3ccb99c9bbcc28efce691ee2f
URL: https://github.com/llvm/llvm-project/commit/53e3180b6e02bbb3ccb99c9bbcc28efce691ee2f DIFF: https://github.com/llvm/llvm-project/commit/53e3180b6e02bbb3ccb99c9bbcc28efce691ee2f.diff LOG: [clang][dataflow] Show triangle in `<details>` element (#67655) 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. Added: Modified: clang/lib/Analysis/FlowSensitive/HTMLLogger.css clang/lib/Analysis/FlowSensitive/HTMLLogger.html Removed: ################################################################################ diff --git a/clang/lib/Analysis/FlowSensitive/HTMLLogger.css b/clang/lib/Analysis/FlowSensitive/HTMLLogger.css index 0ac1902ea4651ec..4de1d1ccc2b08ee 100644 --- a/clang/lib/Analysis/FlowSensitive/HTMLLogger.css +++ b/clang/lib/Analysis/FlowSensitive/HTMLLogger.css @@ -123,10 +123,21 @@ code.line:has(.bb-select):before { font-size: x-small; flex-grow: 1; } -.value summary { +.value > summary { background-color: #ace; display: flex; - justify-content: space-between; + cursor: pointer; +} +.value > summary::before { + content: '\25ba'; /* Black Right-Pointing Pointer */ + margin-right: 0.5em; + font-size: 0.9em; +} +.value[open] > summary::before { + content: '\25bc'; /* Black Down-Pointing Triangle */ +} +.value > summary > .location { + margin-left: auto; } .value .address { font-size: xx-small; diff --git a/clang/lib/Analysis/FlowSensitive/HTMLLogger.html b/clang/lib/Analysis/FlowSensitive/HTMLLogger.html index 87695623cb318b2..6d866d57e144866 100644 --- a/clang/lib/Analysis/FlowSensitive/HTMLLogger.html +++ b/clang/lib/Analysis/FlowSensitive/HTMLLogger.html @@ -18,7 +18,7 @@ <template data-if="v.value_id"><span class="address">#{{v.value_id}}</span></template> </span> <template data-if="v.location"> - <span>{{v.type}} <span class="address">@{{v.location}}</span></span> + <span class="location">{{v.type}} <span class="address">@{{v.location}}</span></span> </template> </summary> <template _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits