Skip to content

Conversation

shubhamkumar9199
Copy link
Contributor

@shubhamkumar9199 shubhamkumar9199 commented Oct 3, 2025

Description

Improved the UI styling by adjusting spacing and layout for better readability and alignment. Specifically:
Increased the gap between buttons to avoid clutter and improve usability.
Added a box-style container around the section to give it a more structured look.

#{Issue Number}
WEB-337

Screenshots, if any

Checklist

before:
Screenshot 2025-10-02 201740
after:
Screenshot 2025-10-03 120908

Please make sure these boxes are checked before submitting your pull request - thanks!

  • [X ] If you have multiple commits please combine them into a one commit by squashing them.

  • [X ] Read and understood the contribution guidelines at web-app/.github/CONTRIBUTING.md.

Summary by CodeRabbit

  • New Features

    • None
  • Refactor

    • Reorganized form into a card-based layout, adjusting section nesting and boundaries.
    • Removed an unused template to simplify the markup.
    • Added minor spacing and structural tweaks for clarity.
  • Style

    • Enhanced table and container visuals with borders, shadows, and rounded corners.
    • Improved responsive behavior for columns, buttons, and multi-row layouts across breakpoints.
  • Bug Fixes

    • Standardized tooltip positioning on the Yes icon for consistent behavior.

Copy link

coderabbitai bot commented Oct 3, 2025

Walkthrough

Refactors the create-data-table component’s template to a card-based layout, removes an unused ng-template, adjusts a tooltip attribute, and reorganizes sections. Adds new SCSS styling with shadows, borders, spacing, and responsive behavior for layout and buttons. No functional or API changes.

Changes

Cohort / File(s) Summary of Changes
Template layout refactor
src/app/system/manage-data-tables/create-data-table/create-data-table.component.html
Wrapped form in mat-card (.first-box), removed templateDataTableFormRef ng-template, replaced unique="right" with matTooltipPosition="right", added “Rows” comment, inserted <br>, reorganized Columns section and card boundaries.
Styling and responsive updates
src/app/system/manage-data-tables/create-data-table/create-data-table.component.scss
Added box-shadow, border, border-radius, transitions for table and .first-box; introduced .layout-lt-md-column layout rules; responsive tweaks for .multi-row-wrapper .multi-row and button positioning/sizing across breakpoints.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • alberto-art3ch
  • steinwinde

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit's high-level summary is enabled.
Title Check ✅ Passed The title clearly describes the core change—improving UI styling by adjusting spacing and layout for better readability and alignment—which directly reflects the template and CSS updates in the PR.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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

Copy link

@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: 1

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2462ea5 and 3b84b95.

📒 Files selected for processing (2)
  • src/app/system/manage-data-tables/create-data-table/create-data-table.component.html (3 hunks)
  • src/app/system/manage-data-tables/create-data-table/create-data-table.component.scss (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
src/app/**

⚙️ CodeRabbit configuration file

src/app/**: For Angular code: verify component separation, trackBy on *ngFor,
strict type safety, and clean observable patterns.

Files:

  • src/app/system/manage-data-tables/create-data-table/create-data-table.component.html
  • src/app/system/manage-data-tables/create-data-table/create-data-table.component.scss
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Run Lint, Build and Deploy

Comment on lines +40 to +45
button {
position: relative;
right: 150px;
margin-top: 5px;
width: 100%;
}
Copy link

@coderabbitai coderabbitai bot Oct 3, 2025

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Fix the button layout regression on large screens.

Setting width: 100% and nudging the button right: 150px makes it span the entire row and overlap adjacent content once the viewport is ≥992px, breaking the alignment this PR is trying to improve. Please keep the button auto-sized for desktop and only stretch it on narrow breakpoints. A flex-friendly tweak can look like:

 .layout-lt-md-column {
   button {
-    position: relative;
-    right: 150px;
-    margin-top: 5px;
-    width: 100%;
+    margin-top: 5px;
+    margin-left: auto;
   }
 }
 
 @media (width <= 768px) {
   .layout-lt-md-column {
     button {
-      right: 0;
-      width: 100%;
-      margin-top: 5px;
+      width: 100%;
+      margin-left: 0;
     }
   }
 }
 
 @media (width >= 769px) and (width <= 991px) {
   .layout-lt-md-column {
     button {
-      right: 20px;
-      width: auto;
+      margin-left: auto;
+      width: auto;
     }
   }
 }

This keeps the desktop layout intact while preserving the mobile-friendly full-width button.

Also applies to: 58-62

🤖 Prompt for AI Agents
In
src/app/system/manage-data-tables/create-data-table/create-data-table.component.scss
around lines 40-45 (and similarly 58-62), the button is forced full-width and
shifted right with right:150px which causes overlap on large viewports; change
the rules to remove right:150px and width:100%, make the button auto-sized by
default (width: auto) and use margin-left: auto or align-self: flex-end when the
parent is a flex container to keep it right-aligned on desktop, and add a media
query (max-width: 991px) to set width: 100% for narrow screens so the button
becomes full-width on mobile; apply the identical adjustments to the other
occurrence at lines 58-62.

Copy link
Contributor

Choose a reason for hiding this comment

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

@shubhamkumar9199 could you please check this review?

Copy link

Choose a reason for hiding this comment

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

Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@shubhamkumar9199 could you please check this review?

@IOhacker i am working on it

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