-
-
Notifications
You must be signed in to change notification settings - Fork 18
Fixes #1436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #1436
Changes from all commits
5e29219
50cf5cc
813a827
8a687c9
c499e7d
6b31480
a48fcae
51d8de5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -499,7 +499,3 @@ tr.mat-row:hover { | |
| padding: 8px 0; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .hidden { | ||
| display: none; | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -522,4 +522,62 @@ export class DbTableViewComponent implements OnInit { | |||||||
| console.log('table view fiers filterSelected:', $event) | ||||||||
| this.applyFilter.emit($event); | ||||||||
| } | ||||||||
|
|
||||||||
| exportData() { | ||||||||
| console.log('export data'); | ||||||||
| console.log(this.selection.selected); | ||||||||
|
Comment on lines
+527
to
+528
|
||||||||
| console.log('export data'); | |
| console.log(this.selection.selected); |
Copilot
AI
Nov 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The exportData() method doesn't handle the case when selection.selected is empty. If no rows are selected, accessing this.selection.selected[0] at line 560 will throw an error. Consider adding a guard condition at the beginning of the method to check if any rows are selected before proceeding with the export.
Copilot
AI
Nov 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The filename 'myFile.csv' is hardcoded. Consider using a more descriptive filename that includes the table name and timestamp, such as ${this.tableName}_export_${Date.now()}.csv to make exported files more identifiable and prevent overwriting.
| a.download = 'myFile.csv'; | |
| const tableName = this.tableName ? this.tableName : 'table'; | |
| a.download = `${tableName}_export_${Date.now()}.csv`; |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -29,6 +29,7 @@ | |||
| align-items: center; | ||||
| height: 100%; | ||||
| min-height: calc(100vh - 120px); /* Adjust based on header height */ | ||||
| position: relative; | ||||
| } | ||||
|
|
||||
| .collapsed-top-section { | ||||
|
|
@@ -39,14 +40,20 @@ | |||
| flex: 1; | ||||
| justify-content: flex-start; | ||||
| padding-top: 8px; | ||||
| overflow-y: auto; | ||||
| width: 100%; | ||||
| } | ||||
|
|
||||
| .collapsed-bottom-section { | ||||
| display: flex; | ||||
| flex-direction: column; | ||||
| align-items: center; | ||||
| margin-top: auto; | ||||
| padding-bottom: 8px; | ||||
| position: sticky; | ||||
| bottom: 0; | ||||
| background-color: #ffffff; | ||||
| padding: 8px 0; | ||||
| width: 100%; | ||||
| z-index: 10; | ||||
| } | ||||
|
|
||||
| .collapsed-folders { | ||||
|
|
@@ -209,6 +216,15 @@ | |||
|
|
||||
| /* Dark theme adaptations */ | ||||
| @media (prefers-color-scheme: dark) { | ||||
| .collapsed-tables-list { | ||||
| background: #303030; | ||||
| border: 1px solid #424242; | ||||
| } | ||||
|
|
||||
| .collapsed-bottom-section { | ||||
| background-color: #303030; | ||||
| } | ||||
|
|
||||
| .collapsed-folder-item { | ||||
| background-color: transparent; | ||||
| color: #ffffff; | ||||
|
|
@@ -422,7 +438,8 @@ | |||
| .tables-list { | ||||
| width: 100%; | ||||
| box-sizing: border-box; | ||||
| min-height: 0; | ||||
| /* min-height: 0; */ | ||||
|
||||
| /* min-height: 0; */ |
Copilot
AI
Nov 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a commented-out CSS selector /* .folder-header.expanded .folder-name, */ at line 491. This commented code should either be removed if it's no longer needed, or uncommented if it's still required for the expanded folder state. Leaving commented code in the codebase without explanation can cause confusion.
| /* .folder-header.expanded .folder-name, */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The change from
display: initial;todisplay: block;may have unintended side effects. Theinitialvalue resets the display property to its default based on the element type, whileblockexplicitly forces block-level display. Verify that this change doesn't break the layout for elements that should naturally be inline or have other display values.