[PR #4227] [CLOSED] fix: PWA Fixes and Improvements: Input Fields, Scrolling, Background Color… #21424

Closed
opened 2026-04-20 03:29:56 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/4227
Author: @erickgodev
Created: 7/31/2024
Status: Closed

Base: devHead: fixing-pwa.input-settings-and-translation


📝 Commits (1)

  • 15e1319 PWA Fixes and Improvements: Input Fields, Scrolling, Background Color, and pt-br Translation

📊 Changes

3 files changed (+725 additions, -718 deletions)

View changed files

📝 src/app.html (+10 -3)
📝 src/lib/components/common/SensitiveInput.svelte (+8 -1)
📝 src/lib/i18n/locales/pt-BR/translation.json (+707 -714)

📄 Description

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • [] Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests for validating the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To cleary categorize this pull request, prefix the pull request title, using one of the following:
    • BREAKING CHANGE: Significant changes that may affect compatibility
    • build: Changes that affect the build system or external dependencies
    • ci: Changes to our continuous integration processes or workflows
    • chore: Refactor, cleanup, or other non-functional code changes
    • docs: Documentation update or addition
    • feat: Introduces a new feature or enhancement to the codebase
    • fix: Bug fix or error correction
    • i18n: Internationalization or localization changes
    • perf: Performance improvement
    • refactor: Code restructuring for better maintainability, readability, or scalability
    • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
    • test: Adding missing tests or correcting existing tests
    • WIP: Work in progress, a temporary label for incomplete or ongoing work

Changelog Entry

Description

  • Fixed the SensitiveInput component so that Chrome does not mistakenly recognize inputs as passwords.
  • Fixed vertical scrolling in PWA mode on iOS and Android.
  • Applied a temporary fix for the white background color in the app in PWA mode.
  • Completely redone pt-br translation to improve pronunciation.

Changed

  • SensitiveInput now uses -webkit-text-security: disc; instead of type=password, causing the browser to not recognize the field as a password. I've already checked, -webkit-text-security works with all browsers from the last 4 years, and Open WebUI itself doesn't work in a version so old that -webkit-text-security isn't supported. I tested it.
  • Fixed app.html so that the body is locked when in PWA mode, not affecting the refresh scroll on mobile and desktop.
  • Partially fixed the problem with the app background in PWA mode that is completely white, even in dark mode.
  • I redid the entire pt-br translation. Since I'm a native speaker, I corrected the entire translation that had some very wrong words.

Additional Information

  • The PWA background is gray, making it look better to the eye, but I will later implement a solution so that it changes dynamically with the theme.

Screenshots or Videos

Before:

img1
img2

After:

img3


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/4227 **Author:** [@erickgodev](https://github.com/erickgodev) **Created:** 7/31/2024 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fixing-pwa.input-settings-and-translation` --- ### 📝 Commits (1) - [`15e1319`](https://github.com/open-webui/open-webui/commit/15e1319741a5010d610e78b842091e6928279f47) PWA Fixes and Improvements: Input Fields, Scrolling, Background Color, and pt-br Translation ### 📊 Changes **3 files changed** (+725 additions, -718 deletions) <details> <summary>View changed files</summary> 📝 `src/app.html` (+10 -3) 📝 `src/lib/components/common/SensitiveInput.svelte` (+8 -1) 📝 `src/lib/i18n/locales/pt-BR/translation.json` (+707 -714) </details> ### 📄 Description # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. **Before submitting, make sure you've checked the following:** - [x] **Target branch:** Please verify that the pull request targets the `dev` branch. - [x] **Description:** Provide a concise description of the changes made in this pull request. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [x] **Testing:** Have you written and run sufficient tests for validating the changes? - [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [x] **Prefix:** To cleary categorize this pull request, prefix the pull request title, using one of the following: - **BREAKING CHANGE**: Significant changes that may affect compatibility - **build**: Changes that affect the build system or external dependencies - **ci**: Changes to our continuous integration processes or workflows - **chore**: Refactor, cleanup, or other non-functional code changes - **docs**: Documentation update or addition - **feat**: Introduces a new feature or enhancement to the codebase - **fix**: Bug fix or error correction - **i18n**: Internationalization or localization changes - **perf**: Performance improvement - **refactor**: Code restructuring for better maintainability, readability, or scalability - **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.) - **test**: Adding missing tests or correcting existing tests - **WIP**: Work in progress, a temporary label for incomplete or ongoing work # Changelog Entry ### Description - Fixed the `SensitiveInput` component so that Chrome does not mistakenly recognize inputs as passwords. - Fixed vertical scrolling in PWA mode on iOS and Android. - Applied a temporary fix for the white background color in the app in PWA mode. - Completely redone pt-br translation to improve pronunciation. ### Changed - `SensitiveInput` now uses `-webkit-text-security: disc;` instead of `type=password`, causing the browser to not recognize the field as a password. I've already checked, `-webkit-text-security` works with all browsers from the last 4 years, and Open WebUI itself doesn't work in a version so old that `-webkit-text-security` isn't supported. I tested it. - Fixed `app.html` so that the `body` is locked when in PWA mode, not affecting the refresh scroll on mobile and desktop. - Partially fixed the problem with the app background in PWA mode that is completely white, even in dark mode. - I redid the entire pt-br translation. Since I'm a native speaker, I corrected the entire translation that had some very wrong words. ### Additional Information - The PWA background is gray, making it look better to the eye, but I will later implement a solution so that it changes dynamically with the theme. ### Screenshots or Videos ## Before: ![img1](https://github.com/user-attachments/assets/9314fbb0-9ea6-4430-a0f6-1c63476cd58d) ![img2](https://github.com/user-attachments/assets/19056742-fa02-4bbf-85f9-74cf091eced9) ## After: ![img3](https://github.com/user-attachments/assets/98a1fec6-19c0-4023-90bd-55f8d5e44bfc) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 03:29:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#21424