Skip to content

Commit d86ae5a

Browse files
LightLight
authored andcommitted
refactor(functions): 调整编辑页面预览图标的样式
1 parent bf4b5d7 commit d86ae5a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/functions.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ function logoPreview() {
257257
.webstack-theme-preview-image {
258258
max-width: 54px;
259259
max-height: 54px;
260+
border-radius: 50%;
260261
}
261262
</style>
262263
<script type="text/javascript">
@@ -286,6 +287,7 @@ function webstackImageHandler(imgDom, loadCallback, errorCallback) {
286287
previewSpan.className = 'webstack-theme-preview-span';
287288
const img = document.createElement('img');
288289
img.className = 'webstack-theme-preview-image';
290+
img.width = 54;
289291
img.src = logoInput.value;
290292
const p = logoInput.parentNode.querySelector('.description');
291293
if (logoInput.value.length === 0) {

0 commit comments

Comments
 (0)