mirror of
https://github.com/obsqrbtz/goose-highlighter.git
synced 2026-04-08 20:19:06 +03:00
fix: made placeholder for textarea, added outline offset
This commit is contained in:
@@ -171,7 +171,10 @@ select {
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
height: 60px;
|
||||
height: 80px;
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
outline-offset: -1px;
|
||||
}
|
||||
|
||||
input[type="color"] {
|
||||
|
||||
@@ -6,7 +6,7 @@ function localizePage(): void {
|
||||
const message = (element as HTMLElement).dataset.i18n!;
|
||||
const localizedText = chrome.i18n.getMessage(message);
|
||||
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;
|
||||
} else {
|
||||
element.textContent = localizedText;
|
||||
|
||||
Reference in New Issue
Block a user