Skip to content

Commit fef347b

Browse files
committed
feat: hide image gallery title when live preview width is reduced too much
1 parent 897453e commit fef347b

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2262,6 +2262,7 @@ function RemoteFunctions(config = {}) {
22622262
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
22632263
border: 1px solid rgba(255, 255, 255, 0.2);
22642264
z-index: 2147483647;
2265+
overflow: hidden;
22652266
}
22662267
22672268
.phoenix-image-gallery-header {
@@ -2279,6 +2280,12 @@ function RemoteFunctions(config = {}) {
22792280
margin-right: 10px;
22802281
}
22812282
2283+
@media (max-width: 525px) {
2284+
.phoenix-image-gallery-header-title {
2285+
display: none;
2286+
}
2287+
}
2288+
22822289
.phoenix-image-gallery-header-icon {
22832290
height: 16px;
22842291
width: 18px;
@@ -2321,6 +2328,12 @@ function RemoteFunctions(config = {}) {
23212328
outline: 1px solid #3a8ef6;
23222329
}
23232330
2331+
@media (max-width: 350px) {
2332+
.search-wrapper input {
2333+
width: 100px;
2334+
}
2335+
}
2336+
23242337
.phoenix-image-gallery-upload-container button {
23252338
display: flex;
23262339
align-items: center;
@@ -2329,7 +2342,8 @@ function RemoteFunctions(config = {}) {
23292342
color: #a0a0a0;
23302343
border: none;
23312344
border-radius: 3px;
2332-
padding: 4px 8px 4px 3px;
2345+
padding: 3px 8px 3px 3px;
2346+
margin-top: 1px;
23332347
font-size: 12px;
23342348
cursor: pointer;
23352349
}
@@ -2338,6 +2352,17 @@ function RemoteFunctions(config = {}) {
23382352
background: #3c3f41;
23392353
}
23402354
2355+
@media (max-width: 400px) {
2356+
.phoenix-image-gallery-upload-container button {
2357+
font-size: 0;
2358+
padding: 3px 6px;
2359+
}
2360+
2361+
.phoenix-image-gallery-upload-container button svg {
2362+
font-size: 16px;
2363+
}
2364+
}
2365+
23412366
.phoenix-image-gallery-right-buttons {
23422367
display: flex;
23432368
align-items: center;

0 commit comments

Comments
 (0)