Skip to content

Commit e6cdb5d

Browse files
authored
[chrome] miscellaneous minor tweaks (#70)
1 parent 09a2854 commit e6cdb5d

4 files changed

Lines changed: 29 additions & 3 deletions

File tree

packages/chrome/src/components/Omnibar/UrlInput.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ UrlInput.style = css`
139139
padding-right: 0.25em;
140140
}
141141
142+
:global(.ui-compact) :scope :is(.inactiveurl, .placeholder, input) {
143+
font-size: 0.9rem;
144+
}
145+
142146
input,
143147
.inactiveurl,
144148
.placeholder {

packages/chrome/src/components/TabStrip/DragTab.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,7 @@ DragTab.style = css`
212212
overflow: hidden;
213213
white-space: nowrap;
214214
text-overflow: ellipsis;
215-
display: flex;
216-
align-items: center;
215+
text-box-trim: trim-both;
217216
line-height: var(--tab-height);
218217
}
219218
.main .close > * {

packages/chrome/src/proxy/contextitems.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ export function pageContextItems(
4141
navigator.clipboard.writeText(selection.toString());
4242
},
4343
},
44+
{
45+
label: "Inspect",
46+
action: () => {
47+
tab.devtoolsOpen = true;
48+
// if (e.target) requestInspectElement([e.target as HTMLElement, tab]);
49+
},
50+
icon: iconCode,
51+
},
4452
];
4553
}
4654

@@ -74,6 +82,14 @@ export function pageContextItems(
7482
// TODO
7583
},
7684
},
85+
{
86+
label: "Inspect",
87+
action: () => {
88+
tab.devtoolsOpen = true;
89+
// if (e.target) requestInspectElement([e.target as HTMLElement, tab]);
90+
},
91+
icon: iconCode,
92+
},
7793
];
7894
} else if (anchor) {
7995
return [
@@ -109,6 +125,14 @@ export function pageContextItems(
109125
},
110126
icon: iconSave,
111127
},
128+
{
129+
label: "Inspect",
130+
action: () => {
131+
tab.devtoolsOpen = true;
132+
// if (e.target) requestInspectElement([e.target as HTMLElement, tab]);
133+
},
134+
icon: iconCode,
135+
},
112136
];
113137
}
114138

packages/chrome/src/proxy/scramjet.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ class ProxyFrameContext {
131131
},
132132
contextmenu: async (msg) => {
133133
if (!tab) return;
134-
135134
let offX = 0;
136135
let offY = 0;
137136
let { x, y } = tab!.frame.frame.getBoundingClientRect();

0 commit comments

Comments
 (0)