Skip to content

Commit

Permalink
release: v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
eallion committed Sep 20, 2024
1 parent dc92d7e commit 522dcb6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "__MSG_extName__",
"version": "2.0.0",
"version": "2.0.1",
"description": "__MSG_extDesc__",
"default_locale": "en",
"permissions": ["activeTab", "scripting", "storage"],
Expand Down
5 changes: 0 additions & 5 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ document.addEventListener('DOMContentLoaded', function () {
const currentUrl = tabs[0].url;
const cleanedUrl = await cleanUrl(currentUrl);
pureUrlTextArea.value = cleanedUrl;
adjustTextAreaHeight(pureUrlTextArea);

const title = tabs[0].title.split(/[_|]/)[0].trim();
const markdownFormat = `[${title}](${cleanedUrl})`;
Expand Down Expand Up @@ -177,8 +176,4 @@ document.addEventListener('DOMContentLoaded', function () {
}, 1500);
}

function adjustTextAreaHeight(textarea) {
textarea.style.height = 'auto'; // 重置高度
textarea.style.height = textarea.scrollHeight + 'px'; // 设置为内容高度
}
});
3 changes: 2 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@ button {
}

#whitelist {
min-height: 512px;
field-sizing: content;
}

#pureurl {
width: 100%;
resize: none;
overflow: hidden;
font-size: 12px;
field-sizing: content;
}

0 comments on commit 522dcb6

Please sign in to comment.