Commit 312f9ad
authored
[memoryprofiler] Add CSS class to parent div (emscripten-core#25595)
Add a CSS class to the main parent div of the memory profiler UI.
Currently, the profiler's container div is created with no ID or class,
making it impossible to target with CSS. This is problematic for
developers (like in the original issue) who run their application in
full-screen, as the profiler UI gets hidden with no way to adjust its
`z-index`.
This change adds the class `emscripten-memory-profiler-container` to the
div upon its creation in `library_memoryprofiler.js`.
This allows developers to easily style the profiler. For example:
```
<style>
.emscripten-memory-profiler-container {
z-index: 9999;
}
</style>
```
Fixes: emscripten-core#201151 parent 779c8f2 commit 312f9ad
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
| |||
0 commit comments