Skip to content

Fix: Application controls in settings page (#817)#1174

Open
aurthitaacharya-afk wants to merge 2 commits intoAOSSIE-Org:mainfrom
aurthitaacharya-afk:fix-issue-817
Open

Fix: Application controls in settings page (#817)#1174
aurthitaacharya-afk wants to merge 2 commits intoAOSSIE-Org:mainfrom
aurthitaacharya-afk:fix-issue-817

Conversation

@aurthitaacharya-afk
Copy link

@aurthitaacharya-afk aurthitaacharya-afk commented Feb 15, 2026

🔧 What this PR does

  • Fixed application controls component in Settings page
  • Improved UI structure and imports
  • Resolved errors related to settings controls

🐛 Issue Fixed
#817

🧪 Changes Made

  • Updated ApplicationControlsCard component
  • Cleaned imports and code structure
  • Ensured proper rendering in Settings page

✅ Checklist

  • Code compiles without errors
  • Followed project structure
  • Tested locally

Summary by CodeRabbit

  • Documentation

    • Updated Discord Server text formatting in README for better visibility and consistency
  • Style

    • Enhanced styling for form controls (buttons, inputs, selects, textareas) and typography elements with adjusted line-height and vertical padding for improved visual appearance

@github-actions github-actions bot added enhancement New feature or request frontend labels Feb 15, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 15, 2026

📝 Walkthrough

Walkthrough

The PR updates README.md with capitalized Discord invitation text and introduces CSS styling fixes for form controls and typography in extra.css. The extra.css changes include duplicated rules and contain syntax irregularities that require attention.

Changes

Cohort / File(s) Summary
Documentation
README.md
Capitalized Discord invitation text from "Discord Server" to "DISCORD SERVER".
Styling
docs/stylesheets/extra.css
Added CSS fix block for form controls and typography with line-height and padding adjustments. Rules appear duplicated with syntax issues: spacing error in "padding-bottom :0 rem;" and typo in comment ("bring" instead of "being").

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Suggested reviewers

  • rahulharpal1603

Poem

🐰 Our Discord shout grows bold and bright,
With caps that gleam in uppercase light!
And CSS rules now trim the seams—
Though double-stacked, like hoppy dreams! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 2
❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title references fixing 'Application controls in settings page' (#817), but the actual changes are a README text update and CSS padding/line-height fixes for form controls, not application controls fixes. Revise the title to accurately reflect the primary changes, such as 'Fix: CSS form controls styling and update README' or 'Fix: Text padding and line-height for form controls'.
Merge Conflict Detection ⚠️ Warning ❌ Merge conflicts detected (56 files):

⚔️ .github/workflows/build-and-release.yml (content)
⚔️ .github/workflows/pr-check-build.yml (content)
⚔️ .pre-commit-config.yaml (content)
⚔️ README.md (content)
⚔️ backend/app/config/settings.py (content)
⚔️ backend/app/logging/setup_logging.py (content)
⚔️ backend/main.py (content)
⚔️ backend/requirements.txt (content)
⚔️ docs/Manual_Setup_Guide.md (content)
⚔️ docs/Script_Setup_Guide.md (content)
⚔️ docs/backend/backend_python/openapi.json (content)
⚔️ docs/backend/backend_rust/api.md (content)
⚔️ docs/stylesheets/extra.css (content)
⚔️ frontend/src-tauri/Cargo.lock (content)
⚔️ frontend/src-tauri/Cargo.toml (content)
⚔️ frontend/src-tauri/capabilities/migrated.json (content)
⚔️ frontend/src-tauri/src/main.rs (content)
⚔️ frontend/src-tauri/src/services/mod.rs (content)
⚔️ frontend/src-tauri/tauri.conf.json (content)
⚔️ frontend/src/components/EmptyStates/EmptyGalleryState.tsx (content)
⚔️ frontend/src/components/Media/MediaInfoPanel.tsx (content)
⚔️ frontend/src/components/Media/MediaView.tsx (content)
⚔️ frontend/src/components/Media/MediaViewControls.tsx (content)
⚔️ frontend/src/components/Media/NavigationButtons.tsx (content)
⚔️ frontend/src/components/Navigation/Sidebar/AppSidebar.tsx (content)
⚔️ frontend/src/components/OnboardingSteps/AvatarSelectionStep.tsx (content)
⚔️ frontend/src/components/OnboardingSteps/FolderSetupStep.tsx (content)
⚔️ frontend/src/components/OnboardingSteps/ServerCheck.tsx (content)
⚔️ frontend/src/components/OnboardingSteps/ThemeSelectionStep.tsx (content)
⚔️ frontend/src/config/Backend.ts (content)
⚔️ frontend/src/features/onboardingSlice.ts (content)
⚔️ frontend/src/hooks/useFolderOperations.tsx (content)
⚔️ frontend/src/hooks/useSlideshow.ts (content)
⚔️ frontend/src/layout/layout.tsx (content)
⚔️ frontend/src/main.tsx (content)
⚔️ frontend/src/pages/SettingsPage/components/ApplicationControlsCard.tsx (content)
⚔️ landing-page/src/Pages/Demo/marqu.tsx (content)
⚔️ landing-page/src/Pages/FaqPage/FAQ.tsx (content)
⚔️ landing-page/src/Pages/Footer/Footer.tsx (content)
⚔️ landing-page/src/Pages/HowItWorks/HowItWorks.tsx (content)
⚔️ landing-page/src/Pages/Landing page/Home1.tsx (content)
⚔️ landing-page/src/Pages/pictopy-landing.tsx (content)
⚔️ mkdocs.yml (content)
⚔️ scripts/setup.js (content)
⚔️ scripts/setup.ps1 (content)
⚔️ scripts/setup.sh (content)
⚔️ sync-microservice/README.md (content)
⚔️ sync-microservice/app/config/settings.py (content)
⚔️ sync-microservice/app/core/lifespan.py (content)
⚔️ sync-microservice/app/logging/setup_logging.py (content)
⚔️ sync-microservice/app/routes/folders.py (content)
⚔️ sync-microservice/app/routes/health.py (content)
⚔️ sync-microservice/app/routes/watcher.py (content)
⚔️ sync-microservice/app/utils/watcher_helpers.py (content)
⚔️ sync-microservice/main.py (content)
⚔️ sync-microservice/requirements.txt (content)

These conflicts must be resolved before merging into main.
Resolve conflicts locally and push changes to this branch.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
⚔️ Resolve merge conflicts (beta)
  • Auto-commit resolved conflicts to branch fix-issue-817
  • Post resolved changes as copyable diffs in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🤖 Fix all issues with AI agents
In `@docs/stylesheets/extra.css`:
- Line 324: The CSS declaration "padding-bottom :0.4 rem;" is invalid because of
the space between the number and unit; locate the "padding-bottom :0.4 rem"
declaration in docs/stylesheets/extra.css (look for the exact "padding-bottom"
line) and remove the space so the value is a valid length (e.g., "0.4rem");
ensure there are no other occurrences with the same space issue and keep spacing
around the colon consistent (padding-bottom: 0.4rem;).
- Line 327: Remove the stray backslash character '\' that is present alone in
the stylesheet (it breaks CSS parsing); locate the lone '\' in the CSS file and
delete it so subsequent rules (e.g., the footer styles) parse correctly, and
scan the file for any other stray characters or stray escape sequences to ensure
no additional parse errors remain.
- Around line 315-325: The current global rule targeting button, input, select,
textarea, .md-typeset p, and .md-typeset li applies line-height and padding
site-wide and contains a typo in the comment and a malformed value ("0.4 rem");
change the comment to "being" and scope the CSS to a page/component wrapper
(e.g., replace the selector with a specific wrapper like .settings-page button,
.settings-page input, .settings-page select, .settings-page textarea,
.settings-page .md-typeset p, .settings-page .md-typeset li) so these styles
only affect the intended page/component, and fix the padding-bottom value to
"0.4rem" and keep line-height: 1.5 as needed.

In `@README.md`:
- Line 9: Remove the extra spaces inside the link text brackets so the markdown
link reads [DISCORD SERVER](https://discord.gg/hjUhu33uAn) instead of [ DISCORD
SERVER ](...); update any other links in README.md that have spaces inside their
bracketed text (e.g., change "[ SOME LINK ]" to "[SOME LINK]") to satisfy
markdownlint MD039 and ensure consistent rendering.

Comment on lines +315 to +325
/* fix text padding issue -prevent letters from bring cut off */
button,
input,
select,
textarea,
.md-typeset p,
.md-typeset li {
line-height : 1.5;
padding-top: 0.4rem;
padding-bottom :0.4 rem;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Overly broad selectors may cause unintended layout changes across all documentation pages.

Applying padding-top/padding-bottom and line-height to every button, input, select, textarea, .md-typeset p, and .md-typeset li globally will affect the entire MkDocs site, not just the settings page. Consider scoping these rules to a more specific selector (e.g., a wrapper class) to avoid unintended side effects on other pages.

Also, the comment on line 315 has a typo: "bring" → "being".

Proposed scoped fix (example)
-/* fix text padding issue -prevent letters from bring cut off */
-button,
-input,
-select,
-textarea,
-.md-typeset p,
-.md-typeset li {
-  line-height : 1.5;
-  padding-top: 0.4rem;
-  padding-bottom :0.4 rem;
-}
+/* fix text padding issue — prevent letters from being cut off */
+.md-typeset p,
+.md-typeset li {
+  line-height: 1.5;
+  padding-top: 0.4rem;
+  padding-bottom: 0.4rem;
+}

If button/input/select/textarea also need the fix, scope them under a specific page or component class rather than applying globally.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
/* fix text padding issue -prevent letters from bring cut off */
button,
input,
select,
textarea,
.md-typeset p,
.md-typeset li {
line-height : 1.5;
padding-top: 0.4rem;
padding-bottom :0.4 rem;
}
/* fix text padding issue — prevent letters from being cut off */
.md-typeset p,
.md-typeset li {
line-height: 1.5;
padding-top: 0.4rem;
padding-bottom: 0.4rem;
}
🤖 Prompt for AI Agents
In `@docs/stylesheets/extra.css` around lines 315 - 325, The current global rule
targeting button, input, select, textarea, .md-typeset p, and .md-typeset li
applies line-height and padding site-wide and contains a typo in the comment and
a malformed value ("0.4 rem"); change the comment to "being" and scope the CSS
to a page/component wrapper (e.g., replace the selector with a specific wrapper
like .settings-page button, .settings-page input, .settings-page select,
.settings-page textarea, .settings-page .md-typeset p, .settings-page
.md-typeset li) so these styles only affect the intended page/component, and fix
the padding-bottom value to "0.4rem" and keep line-height: 1.5 as needed.

.md-typeset li {
line-height : 1.5;
padding-top: 0.4rem;
padding-bottom :0.4 rem;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Invalid CSS value: 0.4 rem — the space breaks the declaration.

0.4 rem is not a valid CSS length; the browser will ignore this entire declaration. Remove the space so it reads 0.4rem.

Proposed fix
-  padding-bottom :0.4 rem;
+  padding-bottom: 0.4rem;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
padding-bottom :0.4 rem;
padding-bottom: 0.4rem;
🤖 Prompt for AI Agents
In `@docs/stylesheets/extra.css` at line 324, The CSS declaration "padding-bottom
:0.4 rem;" is invalid because of the space between the number and unit; locate
the "padding-bottom :0.4 rem" declaration in docs/stylesheets/extra.css (look
for the exact "padding-bottom" line) and remove the space so the value is a
valid length (e.g., "0.4rem"); ensure there are no other occurrences with the
same space issue and keep spacing around the colon consistent (padding-bottom:
0.4rem;).

padding-bottom :0.4 rem;
}

\
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Stray backslash \ is invalid CSS and will cause parse errors.

This lone \ on line 327 will break CSS parsing and may prevent all subsequent rules (e.g., the footer styles below) from being applied. Remove it.

Proposed fix
-\
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
\
🧰 Tools
🪛 Biome (2.3.14)

[error] 326-327: unexpected character \

(parse)

🪛 Stylelint (17.2.0)

[error] 327-327: Unexpected unknown type selector "" (selector-type-no-unknown)

(selector-type-no-unknown)

🤖 Prompt for AI Agents
In `@docs/stylesheets/extra.css` at line 327, Remove the stray backslash character
'\' that is present alone in the stylesheet (it breaks CSS parsing); locate the
lone '\' in the CSS file and delete it so subsequent rules (e.g., the footer
styles) parse correctly, and scan the file for any other stray characters or
stray escape sequences to ensure no additional parse errors remain.

&nbsp;&nbsp;&nbsp;<a href="https://discord.gg/hjUhu33uAn"><img src="https://github.com/user-attachments/assets/3ed93273-5055-4532-a524-87a337a4fbba" height="40"></a>

1. First, join the **[Discord Server](https://discord.gg/hjUhu33uAn) (Go to Projects->PictoPy)** to chat with everyone.
1. First, join the **[ DISCORD SERVER ](https://discord.gg/hjUhu33uAn) (Go to Projects->PictoPy)** to chat with everyone.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Remove spaces inside link text brackets.

The spaces in [ DISCORD SERVER ] trigger markdownlint MD039 (no-space-in-links) and may render incorrectly in some Markdown parsers.

Proposed fix
-1. First, join the **[ DISCORD SERVER ](https://discord.gg/hjUhu33uAn) (Go to Projects->PictoPy)** to chat with everyone.
+1. First, join the **[DISCORD SERVER](https://discord.gg/hjUhu33uAn) (Go to Projects->PictoPy)** to chat with everyone.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
1. First, join the **[ DISCORD SERVER ](https://discord.gg/hjUhu33uAn) (Go to Projects->PictoPy)** to chat with everyone.
1. First, join the **[DISCORD SERVER](https://discord.gg/hjUhu33uAn) (Go to Projects->PictoPy)** to chat with everyone.
🧰 Tools
🪛 markdownlint-cli2 (0.20.0)

[warning] 9-9: Spaces inside link text

(MD039, no-space-in-links)


[warning] 9-9: Spaces inside link text

(MD039, no-space-in-links)

🤖 Prompt for AI Agents
In `@README.md` at line 9, Remove the extra spaces inside the link text brackets
so the markdown link reads [DISCORD SERVER](https://discord.gg/hjUhu33uAn)
instead of [ DISCORD SERVER ](...); update any other links in README.md that
have spaces inside their bracketed text (e.g., change "[ SOME LINK ]" to "[SOME
LINK]") to satisfy markdownlint MD039 and ensure consistent rendering.

@Harshad071
Copy link

Thanks for the contribution! I noticed CodeRabbit flagged:

  • Invalid CSS unit (0.4 rem)
  • Stray backslash
  • Global selector affecting whole docs site

Maybe scoping styles to a wrapper class would prevent unintended layout changes.

Great work overall!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants