diff --git a/src/core/ui/launcher.templ b/src/core/ui/launcher.templ index 2d88780..3f76a7a 100644 --- a/src/core/ui/launcher.templ +++ b/src/core/ui/launcher.templ @@ -110,40 +110,43 @@ templ workspaceCSS() { font-weight:600;font-size:15px;color:#fff;flex-shrink:0 } .avatar.sm{width:32px;height:32px;font-size:13px} - .content{flex:1;padding:20px 16px;max-width:1200px;margin:0 auto;width:100%} - .greeting{display:flex;align-items:center;gap:14px;margin-bottom:28px} - .greeting-text h1{font-size:1.4rem;font-weight:600;color:var(--text);line-height:1.3} - .greeting-text p{color:var(--text2);font-size:0.9rem;margin-top:2px} + .content{flex:1;padding:24px 16px;max-width:900px;margin:0 auto;width:100%} + .greeting{display:flex;align-items:center;gap:12px;margin-bottom:24px} + @media(min-width:600px){.greeting{margin-bottom:32px}} + .greeting-text h1{font-size:1.25rem;font-weight:600;color:var(--text);line-height:1.3} + .greeting-text p{color:var(--text2);font-size:0.85rem;margin-top:2px} /* App Grid */ .app-grid{ display:grid; - grid-template-columns:repeat(2,1fr); - gap:10px + grid-template-columns:repeat(3,1fr); + gap:20px 10px; padding:8px 0 } - @media(min-width:600px){.app-grid{grid-template-columns:repeat(3,1fr);gap:12px}} - @media(min-width:900px){.app-grid{grid-template-columns:repeat(4,1fr);gap:14px}} + @media(min-width:600px){.app-grid{grid-template-columns:repeat(4,1fr);gap:24px 14px}} + @media(min-width:900px){.app-grid{grid-template-columns:repeat(6,1fr);gap:28px 16px}} /* App Card */ .app-card{ - background:var(--surface); border:1px solid var(--border); - border-radius:var(--radius-sm); padding:16px 12px; - cursor:pointer; transition:all 0.2s; text-decoration:none; color:inherit; - display:flex; flex-direction:column; align-items:center; gap:8px; - aspect-ratio:1; justify-content:center; position:relative + display:flex; flex-direction:column; align-items:center; gap:6px; + cursor:pointer; text-decoration:none; color:inherit; padding:8px 4px; + border-radius:12px; transition:all 0.15s; -webkit-tap-highlight-color:transparent } - .app-card:active{transform:scale(0.97)} - .app-card:hover{border-color:var(--surface3); box-shadow:0 2px 12px rgba(0,0,0,0.2)} + .app-card:active{transform:scale(0.92)} + .app-card:hover{background:rgba(255,255,255,0.03)} .app-card .app-icon{ - width:44px;height:44px;border-radius:var(--radius-sm); + width:56px;height:56px;border-radius:14px; display:flex;align-items:center;justify-content:center;flex-shrink:0 } - .app-card .app-icon svg{width:22px;height:22px} - .app-card .app-name{font-size:0.85rem;font-weight:500;color:var(--text);text-align:center;line-height:1.2} - .app-card .app-badge{ - font-size:0.7rem;color:var(--text3);position:absolute;bottom:6px + @media(min-width:600px){.app-card .app-icon{width:64px;height:64px;border-radius:16px}} + .app-card .app-icon svg{width:28px;height:28px} + @media(min-width:600px){.app-card .app-icon svg{width:32px;height:32px}} + .app-card .app-name{ + font-size:0.72rem;font-weight:400;color:var(--text);text-align:center; + line-height:1.2;max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap } - .app-card.disabled{opacity:0.4;cursor:default} + @media(min-width:600px){.app-card .app-name{font-size:0.78rem}} + .app-card .app-badge{display:none} + .app-card.disabled{opacity:0.35;cursor:default} .app-card.disabled:active{transform:none} /* Overlay & Modal */ diff --git a/src/core/ui/launcher_templ.go b/src/core/ui/launcher_templ.go index a4b8c4e..825b648 100644 --- a/src/core/ui/launcher_templ.go +++ b/src/core/ui/launcher_templ.go @@ -196,7 +196,7 @@ func workspaceCSS() templ.Component { templ_7745c5c3_Var8 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, "") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, "") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }