Skip to content

Commit 26d0d8a

Browse files
committed
[frontend] fix tooltip and z-index issues
1 parent 7822d43 commit 26d0d8a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

frontend/src/components/Omnibox.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ export const Omnibox: Component<{
323323
};
324324
Omnibox.style = css`
325325
:scope {
326+
z-index: 1;
326327
background: var(--aboutbrowser-omnibox-bg);
327328
display: flex;
328329
padding: 0px 7px 0px 7px;

frontend/src/components/TabStrip.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const DragTab: Component<
9191
<span class="hostname">{use(this.tab.url.hostname)}</span>
9292
{/*<img src={use(this.tab.screenshot)} class="img" />*/}
9393
<div
94-
style={use`background: -moz-element(#tab${this.tab.id})`}
94+
style={use`background-image: -moz-element(#tab${this.tab.id})`}
9595
class="img"
9696
></div>
9797
</div>
@@ -158,7 +158,8 @@ DragTab.style = css`
158158
159159
.tooltip .img {
160160
width: 100%;
161-
height: 5em;
161+
height: 10em;
162+
background-size: cover;
162163
}
163164
164165
.main {
@@ -482,6 +483,7 @@ Tabs.style = css`
482483
background: var(--aboutbrowser-frame-bg);
483484
padding: 6px 12px;
484485
height: calc(28px + 12px);
486+
z-index: 2;
485487
486488
position: relative;
487489
}

0 commit comments

Comments
 (0)