[PR #3121] [CLOSED] WIP: feat: add comment column into clients table #5352

Closed
opened 2026-10-31 20:46:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3121
Author: @egregors
Created: 6/18/2025
Status: ❌ Closed

Base: main ← Head: main


📄 Description

What is the pull request?

Solution for #3120

Added a new "Comment" column to the client table in the inbounds page, positioned between "Client" and "Traffic" columns as requested.

1. Frontend UI Updates

Desktop version: Added comment column with 60px width between Client and Traffic columns
Mobile version: Added comment column with 20px width, adjusted other column widths accordingly
Responsive design: Different column widths for mobile vs desktop views

2. Component Implementation

Added new comment slot in aClientTable component
Implemented text truncation with ellipsis for long comments
Added tooltip functionality to view full comment text on hover
Integrated with existing Ant Design theme system (dark/light mode support)

3. CSS Styling

.comment-cell: Desktop styling with 150px max-width
.comment-cell-mobile: Mobile styling with 120px max-width
Text overflow handling with ellipsis
Proper inline-block display for consistent layout

4. Mobile Information Panel

Added comment display in mobile info popover
Proper word-break handling for long comments
Conditional rendering (only shows if comment exists)

5. Internationalization (i18n)

Added "comment" translation key to all supported languages:

English, Russian, Chinese (Simplified/Traditional), Persian, Spanish
Arabic, Japanese, Portuguese, Turkish, Ukrainian, Vietnamese, Indonesian

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

Screenshots

Screenshot 2025-06-18 at 18 47 39

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/3121 **Author:** [@egregors](https://github.com/egregors) **Created:** 6/18/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📄 Description ## What is the pull request? Solution for #3120 Added a new "Comment" column to the client table in the inbounds page, positioned between "Client" and "Traffic" columns as requested. #### 1. Frontend UI Updates Desktop version: Added comment column with 60px width between Client and Traffic columns Mobile version: Added comment column with 20px width, adjusted other column widths accordingly Responsive design: Different column widths for mobile vs desktop views #### 2. Component Implementation Added new `comment` slot in `aClientTable` component Implemented text truncation with **ellipsis for long comments** Added tooltip functionality to view full comment text on hover Integrated with existing Ant Design theme system (dark/light mode support) #### 3. CSS Styling `.comment-cell`: Desktop styling with 150px max-width `.comment-cell-mobile`: Mobile styling with 120px max-width Text overflow handling with ellipsis Proper inline-block display for consistent layout #### 4. Mobile Information Panel Added comment display in mobile info popover Proper word-break handling for long comments Conditional rendering (only shows if comment exists) #### 5. Internationalization (i18n) Added "comment" translation key to all supported languages: English, Russian, Chinese (Simplified/Traditional), Persian, Spanish Arabic, Japanese, Portuguese, Turkish, Ukrainian, Vietnamese, Indonesian ## Which part of the application is affected by the change? - [x] Frontend - [ ] Backend ## Type of Changes - [ ] Bug fix - [x] New feature - [ ] Refactoring - [ ] Other ## Screenshots <img width="1308" alt="Screenshot 2025-06-18 at 18 47 39" src="https://github.com/user-attachments/assets/803c4ab4-785d-43d0-b440-9bad4e33c20c" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:46:22 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5352
No description provided.