Skip to content

Commit 5885bbc

Browse files
committed
refactor: remove absolute positioning from elements
1 parent 4787bda commit 5885bbc

File tree

1 file changed

+41
-28
lines changed

1 file changed

+41
-28
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 41 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,7 +1949,11 @@ function RemoteFunctions(config = {}) {
19491949
.phoenix-ribbon-container {
19501950
width: 100% !important;
19511951
height: 156px !important;
1952-
background: rgba(21,25,36,0.55) !important;
1952+
background: rgba(255, 255, 255, 0.3) !important;
1953+
backdrop-filter: blur(10px) !important;
1954+
-webkit-backdrop-filter: blur(10px) !important;
1955+
border: 1px solid rgba(255, 255, 255, 0.2) !important;
1956+
border-radius: 12px !important;
19531957
position: relative !important;
19541958
}
19551959
@@ -2051,17 +2055,28 @@ function RemoteFunctions(config = {}) {
20512055
.phoenix-ribbon-header {
20522056
display: flex !important;
20532057
width: 100% !important;
2058+
position: absolute !important;
2059+
top: 5px !important;
2060+
}
2061+
2062+
.phoenix-ribbon-header-left {
2063+
width: 60% !important;
2064+
display: flex !important;
2065+
}
2066+
2067+
.phoenix-ribbon-header-right {
2068+
width: 40% !important;
2069+
display: flex !important;
2070+
justify-content: flex-end !important;
20542071
}
20552072
20562073
.phoenix-ribbon-search {
2057-
position: absolute !important;
2058-
top: 8px !important;
2059-
left: 6px !important;
20602074
display: flex !important;
20612075
align-items: center !important;
20622076
background: rgba(0,0,0,0.5) !important;
20632077
padding: 5px !important;
20642078
border-radius: 5px !important;
2079+
margin-left: 8px !important;
20652080
}
20662081
20672082
.phoenix-ribbon-search input {
@@ -2080,39 +2095,28 @@ function RemoteFunctions(config = {}) {
20802095
}
20812096
20822097
.phoenix-ribbon-select {
2083-
position: absolute !important;
2084-
top: 8px !important;
2085-
left: 50% !important;
2098+
margin-left: 10px !important;
20862099
}
20872100
20882101
.phoenix-select-image-btn {
2089-
background: rgba(255,255,255,0.1) !important;
2090-
border: 1px solid rgba(255,255,255,0.2) !important;
2091-
color: #e8eaf0 !important;
2092-
padding: 4px 5px !important;
2102+
background: gray !important;
2103+
border: 1px solid rgba(255, 255, 255, 0.2) !important;
2104+
color: #fff !important;
2105+
padding: 2px 4px !important;
20932106
border-radius: 6px !important;
20942107
font-size: 12px !important;
20952108
cursor: pointer !important;
2096-
margin-left: 8px !important;
2097-
white-space: nowrap !important;
20982109
transition: all 0.2s ease !important;
20992110
}
21002111
2101-
.phoenix-select-image-btn:hover {
2102-
background: rgba(255,255,255,0.2) !important;
2103-
border-color: rgba(255,255,255,0.3) !important;
2104-
}
2105-
21062112
.phoenix-ribbon-close {
21072113
background: rgba(0,0,0,0.5) !important;
21082114
border: none !important;
21092115
color: white !important;
21102116
cursor: pointer !important;
21112117
padding: 4px 8px !important;
21122118
border-radius: 3px !important;
2113-
position: absolute !important;
2114-
right: 4px !important;
2115-
top: 10px !important;
2119+
margin-right: 16px !important;
21162120
}
21172121
21182122
.phoenix-ribbon-attribution {
@@ -2189,15 +2193,24 @@ function RemoteFunctions(config = {}) {
21892193
<div class="phoenix-image-ribbon">
21902194
<div class="phoenix-ribbon-container">
21912195
<div class="phoenix-ribbon-header">
2192-
<div class="phoenix-ribbon-search">
2193-
<input type="text" placeholder="Search images..." />
2194-
<button class="phoenix-ribbon-search-btn">Search</button>
2196+
<div class="phoenix-ribbon-header-left">
2197+
<div class="phoenix-ribbon-search">
2198+
<input type="text" placeholder="Search images..." />
2199+
<button class="phoenix-ribbon-search-btn">Search</button>
2200+
</div>
2201+
<div class="phoenix-ribbon-select">
2202+
<button class="phoenix-select-image-btn" title="Select image from computer">
2203+
<svg viewBox="0 0 24 24" fill="currentColor" width="20" height="20">
2204+
<path d="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z"/>
2205+
<path d="M12,12L10.5,13.5L8.5,11.5L6,14H18L15,11L12,12Z"/>
2206+
</svg>
2207+
</button>
2208+
<input type="file" class="phoenix-file-input" accept="image/*" style="display: none;">
2209+
</div>
21952210
</div>
2196-
<div class="phoenix-ribbon-select">
2197-
<button class="phoenix-select-image-btn">📁 Select from Computer</button>
2198-
<input type="file" class="phoenix-file-input" accept="image/*" style="display: none;">
2211+
<div class="phoenix-ribbon-header-right">
2212+
<button class="phoenix-ribbon-close">×</button>
21992213
</div>
2200-
<button class="phoenix-ribbon-close">×</button>
22012214
</div>
22022215
<div class="phoenix-ribbon-nav left">&#8249;</div>
22032216
<div class="phoenix-ribbon-strip">

0 commit comments

Comments
 (0)