Przeglądaj źródła

refactor: optimize logo spacing and increase company name size

Logo optimization:
- Remove fixed width (100px) - let image determine natural size
- Set logo height: 45px (fits naturally in 80px header)
- Remove unnecessary justify-content property
- Cleaner, more maintainable code

Company name enhancement:
- Font size: 14px → 16px (more prominent)
- Letter spacing: 0.5px → 1px (better readability)
- Reduce padding/margin: 12px → 10px (tighter layout)

Result:
- Logo uses natural aspect ratio ✓
- Company name more visible ✓
- Minimal spacing (10px) ✓
- Professional, balanced layout ✓

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Ryuiso 3 tygodni temu
rodzic
commit
d7c12c0b59
1 zmienionych plików z 5 dodań i 8 usunięć
  1. 5 8
      src/components/Header.vue

+ 5 - 8
src/components/Header.vue

@@ -186,16 +186,13 @@ export default {
 /* Logo */
 .header-logo {
   flex-shrink: 0;
-  width: 100px;
-  height: 50px;
   display: flex;
   align-items: center;
-  justify-content: flex-start;
 }
 
 .header-logo img {
+  height: 45px;
   width: auto;
-  height: 100%;
   object-fit: contain;
 }
 
@@ -204,16 +201,16 @@ export default {
   flex-shrink: 0;
   display: flex;
   align-items: center;
-  padding-left: 12px;
-  margin-left: 12px;
+  padding-left: 10px;
+  margin-left: 10px;
   border-left: 1px solid #e0e0e0;
 }
 
 .header-company-name span {
-  font-size: 14px;
+  font-size: 16px;
   font-weight: 600;
   color: #333;
-  letter-spacing: 0.5px;
+  letter-spacing: 1px;
   line-height: 1.4;
   white-space: nowrap;
 }