fix: made placeholder for textarea, added outline offset

This commit is contained in:
2025-11-19 16:12:55 +03:00
parent 1ba701737e
commit 4f32be0b93
2 changed files with 5 additions and 2 deletions

View File

@@ -171,7 +171,10 @@ select {
textarea { textarea {
resize: vertical; resize: vertical;
height: 60px; height: 80px;
font-size: 14px;
line-height: 1.4;
outline-offset: -1px;
} }
input[type="color"] { input[type="color"] {

View File

@@ -6,7 +6,7 @@ function localizePage(): void {
const message = (element as HTMLElement).dataset.i18n!; const message = (element as HTMLElement).dataset.i18n!;
const localizedText = chrome.i18n.getMessage(message); const localizedText = chrome.i18n.getMessage(message);
if (localizedText) { if (localizedText) {
if (element.tagName === 'INPUT' && (element as HTMLInputElement).hasAttribute('placeholder')) { if ((element.tagName === 'INPUT' || element.tagName === 'TEXTAREA') && (element as HTMLInputElement).hasAttribute('placeholder')) {
(element as HTMLInputElement).placeholder = localizedText; (element as HTMLInputElement).placeholder = localizedText;
} else { } else {
element.textContent = localizedText; element.textContent = localizedText;