Просмотр исходного кода

style(client): reduce expanded search height

_Kerman 2 месяцев назад
Родитель
Сommit
79b9f3d524

+ 2 - 2
packages/client/ui-workspace/src/client/WorkspaceBrowser.module.css

@@ -170,7 +170,7 @@
 
 .searchExpanded {
   width: calc(100% + 4px);
-  height: 34px;
+  height: 30px;
   margin-inline: -2px;
   padding: 0 4px 0 0;
   border: 1px solid var(--dsw-alias-border-l2);
@@ -196,7 +196,7 @@
 
 .searchExpanded .searchButton {
   width: 28px;
-  height: 34px;
+  height: 30px;
 }
 
 .searchButton:hover {

+ 1 - 1
packages/client/ui-workspace/tests/browser-styles.spec.ts

@@ -96,7 +96,7 @@ describe('WorkspaceBrowser.module.css list', () => {
   it('keeps the compact fade, overflow control, search field, and row heights', () => {
     expect(declarations('.fade')?.get('height')).toBe('24px')
     expect(declarations('.sessionOverflowButton')?.get('height')).toBe('28px')
-    expect(declarations('.searchExpanded')?.get('height')).toBe('34px')
+    expect(declarations('.searchExpanded')?.get('height')).toBe('30px')
     expect(rowDeclarations('.projectRow')?.get('height')).toBe('34px')
     expect(rowDeclarations('.sessionRow')?.get('height')).toBe('32px')
     expect(rowDeclarations('.searchResultRow')?.get('min-height')).toBe('48px')