Skip to content

Commit 5a1b710

Browse files
committed
refactor: wrap image ribbon inside image ribbon container
1 parent e633f90 commit 5a1b710

File tree

1 file changed

+16
-30
lines changed

1 file changed

+16
-30
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 16 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,24 +1939,17 @@ function RemoteFunctions(config = {}) {
19391939
left: 0 !important;
19401940
right: 0 !important;
19411941
width: 100vw !important;
1942-
height: 150px !important;
19431942
background: linear-gradient(180deg, rgba(12,14,20,0.0), rgba(12,14,20,0.7)) !important;
1944-
z-index: 999999 !important;
1943+
z-index: 2147483647 !important;
19451944
display: flex !important;
1946-
align-items: center !important;
1947-
justify-content: center !important;
19481945
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial !important;
19491946
pointer-events: auto !important;
19501947
}
19511948
19521949
.phoenix-ribbon-container {
1953-
width: min(1200px, 96vw) !important;
1954-
height: 132px !important;
1955-
border-radius: 16px !important;
1950+
width: 100% !important;
1951+
height: 160px !important;
19561952
background: rgba(21,25,36,0.55) !important;
1957-
backdrop-filter: blur(8px) !important;
1958-
border: 1px solid rgba(255,255,255,0.08) !important;
1959-
overflow: hidden !important;
19601953
position: relative !important;
19611954
}
19621955
@@ -1965,14 +1958,13 @@ function RemoteFunctions(config = {}) {
19651958
inset: 0 !important;
19661959
overflow: hidden !important;
19671960
scroll-behavior: smooth !important;
1968-
padding: 8px !important;
1961+
padding: 6px !important;
1962+
top: 34px !important;
19691963
}
19701964
19711965
.phoenix-ribbon-row {
19721966
display: flex !important;
19731967
gap: 2px !important;
1974-
align-items: center !important;
1975-
height: 100% !important;
19761968
}
19771969
19781970
.phoenix-ribbon-thumb {
@@ -2065,14 +2057,8 @@ function RemoteFunctions(config = {}) {
20652057
}
20662058
20672059
.phoenix-ribbon-header {
2068-
position: absolute !important;
2069-
top: -20px !important;
2070-
left: 0 !important;
2071-
right: 0 !important;
20722060
display: flex !important;
20732061
justify-content: space-between !important;
2074-
align-items: center !important;
2075-
padding: 0 20px !important;
20762062
}
20772063
20782064
.phoenix-ribbon-search {
@@ -2206,24 +2192,24 @@ function RemoteFunctions(config = {}) {
22062192
}
22072193
</style>
22082194
<div class="phoenix-image-ribbon">
2209-
<div class="phoenix-ribbon-header">
2210-
<div class="phoenix-ribbon-search">
2211-
<input type="text" placeholder="Search images..." />
2212-
<button class="phoenix-ribbon-search-btn">Search</button>
2213-
<button class="phoenix-select-image-btn">📁 Select from Computer</button>
2214-
<input type="file" class="phoenix-file-input" accept="image/*" style="display: none;">
2215-
</div>
2216-
<button class="phoenix-ribbon-close">✕</button>
2217-
</div>
2218-
<div class="phoenix-ribbon-nav left">&#8249;</div>
22192195
<div class="phoenix-ribbon-container">
2196+
<div class="phoenix-ribbon-header">
2197+
<div class="phoenix-ribbon-search">
2198+
<input type="text" placeholder="Search images..." />
2199+
<button class="phoenix-ribbon-search-btn">Search</button>
2200+
<button class="phoenix-select-image-btn">📁 Select from Computer</button>
2201+
<input type="file" class="phoenix-file-input" accept="image/*" style="display: none;">
2202+
</div>
2203+
<button class="phoenix-ribbon-close">✕</button>
2204+
</div>
2205+
<div class="phoenix-ribbon-nav left">&#8249;</div>
22202206
<div class="phoenix-ribbon-strip">
22212207
<div class="phoenix-ribbon-row phoenix-ribbon-loading">
22222208
Loading images...
22232209
</div>
22242210
</div>
2211+
<div class="phoenix-ribbon-nav right">&#8250;</div>
22252212
</div>
2226-
<div class="phoenix-ribbon-nav right">&#8250;</div>
22272213
</div>
22282214
`;
22292215
},

0 commit comments

Comments
 (0)