Commit 84b5d95
Fix heap snapshot rename UX
This change fixes three problems:
- When the snapshot is renamed to empty string, there is no way
to turn on edit mode anymore. To fix this, we cancel the edit
if the new name is the empty string.
- Because both the .title and the .title-container classes are
set to overflow:hidden and text-overflow:ellipsis, we observe
the issue in issue 383014858. To fix this, we only apply
text-overflow:ellipsis when not editing. We also apply
display:flex to auto-adjust the size of the .title span to avoid
an overlap with the .subtitle span when editing
- We add a small padding-left so that the .title span does not get
slightly truncated from the left in some situations after an
edit that changes the snapshot to a longer name is committed.
Fixed: 383014858
Change-Id: I20967e209d86f59fcbcc29175366e8a62fec41bc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6088098
Reviewed-by: Ergün Erdoğmuş <[email protected]>
Auto-Submit: Yang Guo <[email protected]>
Commit-Queue: Yang Guo <[email protected]>1 parent 9020782 commit 84b5d95
File tree
2 files changed
+18
-2
lines changed- front_end/panels/profiler
2 files changed
+18
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
104 | 110 | | |
105 | 111 | | |
106 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
187 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
188 | 196 | | |
| 197 | + | |
| 198 | + | |
189 | 199 | | |
190 | 200 | | |
191 | 201 | | |
| |||
0 commit comments