Skip to content

fix(gitlab): prevent host styles from breaking Ollama CORS code blocks #236

@cursor

Description

@cursor

Issue Description

Fix for preventing GitLab host styles from breaking the Ollama CORS code blocks rendering in the integrated review panel.

Changes

  • Add defensive pre/code reset under #gitlab-mr-integrated-review to prevent cascading styles from the host page (e.g., GitLab Pajamas)
  • Use !important on .thinkreview-ollama-cors-code backgrounds and text colors so GitLab rules cannot win the cascade in dark mode

Details

CSS Updates

  • Added defensive reset rules for pre and code elements under the #gitlab-mr-integrated-review container
  • Applied !important to background colors and text colors in both light and dark mode
  • Ensures extension styles take precedence over GitLab's styling

Files Modified

  • components/integrated-review.css

Related PR

Addresses changes in PR #235


Assigned to: @mshenawy22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions