Skip to content

Commit bb10643

Browse files
committed
feat: add fit to panel button after resizing in design mode
1 parent cec96bb commit bb10643

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,24 @@
178178
margin-top: 0;
179179
}
180180

181+
.lp-fit-to-panel-btn {
182+
color: #a0a0a0;
183+
flex-shrink: 0;
184+
margin: 0 2px;
185+
background: transparent;
186+
border: 1px solid transparent;
187+
box-shadow: none;
188+
font-size: 12px;
189+
}
190+
191+
.lp-fit-to-panel-btn:hover,
192+
.lp-fit-to-panel-btn:focus,
193+
.lp-fit-to-panel-btn:active {
194+
background: transparent !important;
195+
border: 1px solid rgba(255, 255, 255, 0.1) !important;
196+
box-shadow: none !important;
197+
}
198+
181199
.lp-device-size-btn-group {
182200
display: flex;
183201
align-items: center;

src/nls/root/strings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ define({
527527
"DEVICE_SIZE_NOT_ENOUGH_SPACE": "Not enough space for this screen size - try zooming out",
528528
"DEVICE_SIZE_CYCLE_TOOLTIP": "Switch between mobile, tablet, and desktop",
529529
"DEVICE_SIZE_DROPDOWN_TOOLTIP": "All device sizes",
530+
"DEVICE_SIZE_FIT_TO_PANEL": "Fit to panel",
530531
"MD_EDIT_UPSELL_MESSAGE": "Write Markdown like a document. {APP_NAME} handles the formatting so you can stay focused on writing.",
531532
"IMAGE_UPLOADING": "Uploading",
532533
"IMAGE_UPLOAD_FAILED": "Failed to upload image",

0 commit comments

Comments
 (0)