Skip to content

Commit 906c866

Browse files
committed
refactor: remove fit-to-panel button and its string/css
The fit-to-panel button only appeared in design mode when a responsive viewport was active. Its role is now folded into the device size cycle button in phoenix-pro, which treats "fit" as a 4th cycle state when in design mode. Drops the dedicated button, its CSS, and the unused DEVICE_SIZE_FIT_TO_PANEL string.
1 parent c588acb commit 906c866

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

src/extensionsIntegrated/Phoenix-live-preview/live-preview.css

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -250,24 +250,6 @@
250250
margin-top: 0;
251251
}
252252

253-
.lp-fit-to-panel-btn {
254-
color: #a0a0a0;
255-
flex-shrink: 0;
256-
margin: 0 2px;
257-
background: transparent;
258-
border: 1px solid transparent;
259-
box-shadow: none;
260-
font-size: 12px;
261-
}
262-
263-
.lp-fit-to-panel-btn:hover,
264-
.lp-fit-to-panel-btn:focus,
265-
.lp-fit-to-panel-btn:active {
266-
background: transparent !important;
267-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
268-
box-shadow: none !important;
269-
}
270-
271253
.lp-device-size-btn-group {
272254
display: flex;
273255
align-items: center;

src/nls/root/strings.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,6 @@ define({
528528
"DEVICE_SIZE_CYCLE_NO_FIT": "Screen too small to switch to another device size — increase the window size",
529529
"DEVICE_SIZE_CYCLE_TOOLTIP": "Switch between mobile, tablet, and desktop",
530530
"DEVICE_SIZE_DROPDOWN_TOOLTIP": "All device sizes",
531-
"DEVICE_SIZE_FIT_TO_PANEL": "Fit to panel",
532531
"MD_EDIT_UPSELL_MESSAGE": "Write Markdown like a document. {APP_NAME} handles the formatting so you can stay focused on writing.",
533532
"IMAGE_UPLOADING": "Uploading",
534533
"IMAGE_UPLOAD_FAILED": "Failed to upload image",

0 commit comments

Comments
 (0)