mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 08:15:56 +01:00
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:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user