Skip to content

Commit 349c4e6

Browse files
huozhiRobPruzan
authored andcommitted
[devtool] styling fixes (#81228)
### Styling fixes * The overlay needs to have the highiest index, it's regressed from the change in #80974 while tweaking around new panel UI * Noticed the route info needs to be set as nowrap when pathname is super long | After | Before | |:-- |:-- | | ![image](https://github.com/user-attachments/assets/0b4b2583-9b71-4a42-9255-ccd555afb3af) | ![image](https://github.com/user-attachments/assets/16f5c3ae-2f68-4f53-aaef-983a1e4c88f6) | | ![image](https://github.com/user-attachments/assets/8f6f234a-a29b-4c4d-abf9-f75b0cb0b294) | ![image](https://github.com/user-attachments/assets/2aef4bb4-320e-43c3-984e-45d1b28bf0fc) |
1 parent 4144264 commit 349c4e6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/next/src/next-devtools/dev-overlay/components/overlay/styles.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ const styles = `
55
right: 0;
66
bottom: 0;
77
left: 0;
8-
z-index: 3;
8+
/* secondary z-index, -1 than toast z-index */
9+
z-index: 2147483646;
910
1011
display: flex;
1112
align-content: center;

packages/next/src/next-devtools/dev-overlay/components/overview/segment-explorer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ export const DEV_TOOLS_INFO_RENDER_FILES_STYLES = css`
258258
font-weight: 500;
259259
color: var(--color-gray-1000);
260260
font-family: var(--font-mono);
261+
white-space: nowrap;
261262
}
262263
263264
.segment-explorer-item {

0 commit comments

Comments
 (0)