vedhsaka / Nothotdog

NotHotDog is postman for voice AI agents
https://www.NotHotDog.dev
MIT License
62 stars 1 forks source link

Use relative units of sizing in css #69

Open NehaMadnani opened 2 months ago

NehaMadnani commented 2 months ago

Instead of using px, need to switch to em / rem or % for all CSS properties

NehaMadnani commented 2 months ago

Objective:

Update the CSS files to replace all instances of px units with scalable units such as rem, em, or %. This will make the styles more responsive and adaptable to different screen sizes and user preferences.

Files to Update:

Task Details:

  1. Choose one / two CSS files to work on and mention them in the comments

  2. Identify and Replace px Units:

    • For font sizes: Replace px with rem or em units, considering a base font size of 16px (i.e., 1rem = 16px).
    • For padding, margin, width, height, etc.: Replace px with rem, em, or % units where appropriate. Use % for container widths and heights if they need to be relative to their parent elements.
    • Ensure that all styles maintain their visual design integrity after the conversion.
  3. Test the Changes:

    • Test the application after making changes to ensure that all components are rendering correctly on different screen sizes.
    • Verify that no layout or design issues arise from the unit conversion.
  4. Create a Pull Request:

    • Once the changes are made and tested, submit a pull request with a description of the changes and the reasons for any specific unit choices.

Acceptance Criteria:

-px units for font-size, padding & margin in the specified files are replaced with rem, em, or %.

Additional Notes:

Torence7 commented 2 months ago

I would like to work on this issue for the following files: ApiConnections.css ApiTabs.css App.css

NehaMadnani commented 2 months ago

Please go ahead. I've mentioned your names against those files in the issue.