Implement workaround for Chromium autofill visual bug

pull/16/head
Flashfyre 2024-02-19 21:09:06 -05:00
parent 09e7fab141
commit 80a013bb52
2 changed files with 5 additions and 0 deletions

View File

@ -157,3 +157,7 @@ body {
#layout:fullscreen #dpad, #layout:fullscreen #apad { #layout:fullscreen #dpad, #layout:fullscreen #apad {
bottom: 6rem; bottom: 6rem;
} }
input:-internal-autofill-selected {
-webkit-background-clip: text;
}

View File

@ -50,6 +50,7 @@ export abstract class FormModalUiHandler extends ModalUiHandler {
this.modalContainer.add(label); this.modalContainer.add(label);
const inputContainer = this.scene.add.container(70, (hasTitle ? 28 : 2) + 20 * f); const inputContainer = this.scene.add.container(70, (hasTitle ? 28 : 2) + 20 * f);
inputContainer.setVisible(false);
const inputBg = addWindow(this.scene, 0, 0, 80, 16, false, false, 0, 0, WindowVariant.XTHIN); const inputBg = addWindow(this.scene, 0, 0, 80, 16, false, false, 0, 0, WindowVariant.XTHIN);