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 {
|
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"] {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user