Customizations: Adjust search bar height in layout methods for consistency across widgets (#299333)

Adjust search bar height in layout methods for consistency across widgets
This commit is contained in:
Josh Spicer
2026-03-04 18:18:10 -08:00
committed by GitHub
parent a3c86528c3
commit efd8663445
4 changed files with 4 additions and 4 deletions

View File

@@ -1155,7 +1155,7 @@ export class AICustomizationListWidget extends Disposable {
*/
layout(height: number, width: number): void {
const sectionFooterHeight = this.sectionHeader.offsetHeight || 0;
const searchBarHeight = this.searchAndButtonContainer.offsetHeight || 40;
const searchBarHeight = this.searchAndButtonContainer.offsetHeight || 52;
const listHeight = height - sectionFooterHeight - searchBarHeight;
this.searchInput.layout();

View File

@@ -777,7 +777,7 @@ export class McpListWidget extends Disposable {
*/
layout(height: number, width: number): void {
const sectionFooterHeight = this.sectionHeader.offsetHeight || 0;
const searchBarHeight = this.searchAndButtonContainer.offsetHeight || 40;
const searchBarHeight = this.searchAndButtonContainer.offsetHeight || 52;
const backLinkHeight = this.browseMode ? (this.backLink.offsetHeight || 28) : 0;
const listHeight = height - sectionFooterHeight - searchBarHeight - backLinkHeight;

View File

@@ -166,7 +166,7 @@
align-items: center;
gap: 8px;
flex-shrink: 0;
margin: 6px 0px;
padding: 6px 0;
}
.ai-customization-list-widget .list-search-container,

View File

@@ -795,7 +795,7 @@ export class PluginListWidget extends Disposable {
layout(height: number, width: number): void {
const sectionFooterHeight = this.sectionHeader.offsetHeight || 0;
const searchBarHeight = this.searchAndButtonContainer.offsetHeight || 40;
const searchBarHeight = this.searchAndButtonContainer.offsetHeight || 52;
const backLinkHeight = this.browseMode ? (this.backLink.offsetHeight || 28) : 0;
const listHeight = height - sectionFooterHeight - searchBarHeight - backLinkHeight;