Skip to content

Commit cc40092

Browse files
committed
fix: image gallery moving when live preview is scrolled due to absolute positioning
1 parent 664e4db commit cc40092

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2253,14 +2253,13 @@ function RemoteFunctions(config = {}) {
22532253
this._shadow.innerHTML = `
22542254
<style>
22552255
.phoenix-image-gallery-container {
2256-
position: absolute;
2256+
position: fixed;
22572257
bottom: 0;
22582258
left: 12px;
22592259
right: 12px;
22602260
background-color: #2c2c2c;
22612261
border-radius: 6px 6px 0 0;
22622262
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
2263-
height: 164px;
22642263
border: 1px solid rgba(255, 255, 255, 0.2);
22652264
z-index: 2147483647;
22662265
}
@@ -2290,13 +2289,11 @@ function RemoteFunctions(config = {}) {
22902289
22912290
.search-wrapper {
22922291
position: relative;
2293-
width: 130px;
22942292
}
22952293
22962294
.search-wrapper input {
2297-
width: 100%;
2298-
padding: 8px 12px 8px 36px;
2299-
border-radius: 6px;
2295+
padding: 5px 4px 6px 36px;
2296+
border-radius: 4px;
23002297
border: none;
23012298
background-color: #1e1e1e;
23022299
color: #fff;
@@ -2321,10 +2318,6 @@ function RemoteFunctions(config = {}) {
23212318
outline: 1px solid #3a8ef6;
23222319
}
23232320
2324-
.phoenix-image-gallery-upload-container {
2325-
margin-left: 40px;
2326-
}
2327-
23282321
.phoenix-image-gallery-upload-container button {
23292322
display: flex;
23302323
align-items: center;
@@ -2371,7 +2364,7 @@ function RemoteFunctions(config = {}) {
23712364
.phoenix-image-gallery-strip {
23722365
overflow: hidden;
23732366
scroll-behavior: smooth;
2374-
padding: 6px;
2367+
padding: 3px 6px 6px 6px;
23752368
}
23762369
23772370
.phoenix-image-gallery-row {

0 commit comments

Comments
 (0)