Skip to content

feat: 优化用户设置界面样式#72

Merged
adlsdztony merged 1 commit into
devfrom
setting-ui
Jun 14, 2025
Merged

feat: 优化用户设置界面样式#72
adlsdztony merged 1 commit into
devfrom
setting-ui

Conversation

@Karis004
Copy link
Copy Markdown
Member

This pull request includes updates to the styling and functionality of various UI components in scripts/moodle/js/content.js and scripts/setting/jsx/Setting.js. The most notable changes involve adjustments to button styles, form input fields, and layout elements to improve visual consistency and user experience.

Functional Updates:

  • jumpToExamBase() in content.js: Added a fly variable to toggle between true and false based on the ExamBaseFly data, improving clarity and state management.

Styling Updates:

Buttons:

  • Save Button in SetUserForm: Updated styles for the save button, including changes to padding, border radius, and font size. The button now has a white background with a blue border and text for a cleaner look.
  • Logout Button: Adjusted logout button styles to include a white background with a red border and text, along with increased padding and font size for better usability.

Input Fields:

  • Text Input in SetUserForm: Redesigned the input field with softer borders, increased height, and a light background to enhance readability and aesthetics.

Layout Elements:

  • ExamBaseButton: Improved alignment and spacing by adding left margins and vertical centering for the checkbox and label. [1] [2]
  • SettingBlock Header: Changed the header element from H3 to H2, adjusted font size, weight, and alignment, and added left margin for better hierarchy and layout consistency.

@adlsdztony adlsdztony merged commit 02b294e into dev Jun 14, 2025
@adlsdztony adlsdztony deleted the setting-ui branch June 14, 2025 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants