Skip to content

UI styles, DateFilter option, Table & templates fixes#2675

Merged
shewa12 merged 7 commits into4.0.0-devfrom
fix-design-related-issues
May 8, 2026
Merged

UI styles, DateFilter option, Table & templates fixes#2675
shewa12 merged 7 commits into4.0.0-devfrom
fix-design-related-issues

Conversation

@sazedul-haque
Copy link
Copy Markdown
Collaborator

Several UI and component fixes:

  • SCSS: Cleaned up table and upcoming-lesson-card styles (removed/reset borders, added background colors, fixed nesting/indentation, whitespace, and responsive rules). Adjusted profile card/title/statistic margins and removed some redundant responsive hiding.
  • DateFilter: Added $hide_initial_label property and hide_initial_label(bool) setter. When enabled, the default "All Time" label returns an empty string.
  • Table: Guard against missing heading class by defaulting to an empty string when rendering .
  • Templates: Added spacing utility classes to profile wrapper; removed an unused size/style call in security template input; wrapped Withdraw empty-state title with translation function.

These changes improve visual consistency, responsiveness, and robustness of component rendering.

Several UI and component fixes:

- SCSS: Cleaned up table and upcoming-lesson-card styles (removed/reset borders, added background colors, fixed nesting/indentation, whitespace, and responsive rules). Adjusted profile card/title/statistic margins and removed some redundant responsive hiding.
- DateFilter: Added $hide_initial_label property and hide_initial_label(bool) setter. When enabled, the default "All Time" label returns an empty string.
- Table: Guard against missing heading class by defaulting to an empty string when rendering <th>.
- Templates: Added spacing utility classes to profile wrapper; removed an unused size/style call in security template input; wrapped Withdraw empty-state title with translation function.

These changes improve visual consistency, responsiveness, and robustness of component rendering.
@sazedul-haque sazedul-haque requested review from b-l-i-n-d and shewa12 May 7, 2026 09:18
@sazedul-haque sazedul-haque added the 4.0.0 Tutor v4.w0w label May 7, 2026
Comment thread components/DateFilter.php Outdated
Comment thread components/Table.php Outdated
Copy link
Copy Markdown
Collaborator

@shewa12 shewa12 left a comment

Choose a reason for hiding this comment

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

Please check the comments

Introduce non-!important display utilities (.tutor-*) and matching breakpoint variants in assets/core/scss/utilities/_layout.scss. Update templates to use the stronger force utilities (tutor-force-*) instead of tutor-hidden/tutor-sm-hidden/tutor-sm-flex to ensure responsive visibility overrides, and adjust a quiz button display to use !important. Also make the announcements create button icon-only. Affected files: _layout.scss, _quiz.scss, and multiple dashboard/learning-area templates.
Remove the boolean parameter from DateFilter::hide_initial_label() and make it always set the internal flag to true, simplifying the method. Replace an isset() ternary with the null coalescing operator in Table when rendering heading classes for cleaner, more concise code. Note: removing the method parameter is a backward-incompatible change for callers that previously passed an argument.
Comment thread templates/dashboard/discussions/comment-card.php Outdated
Comment thread templates/dashboard/discussions/qna-card.php Outdated
table {
min-width: 600px;
width: 100%;
border: none;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please do check the other tables.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Sure

@shewa12 shewa12 merged commit 7564378 into 4.0.0-dev May 8, 2026
10 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.0.0 Tutor v4.w0w

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants