mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-22 05:18:38 +00:00
refactor(macos): dedupe UI, pairing, and runtime helpers
This commit is contained in:
12
apps/macos/Sources/OpenClaw/SettingsSidebarCard.swift
Normal file
12
apps/macos/Sources/OpenClaw/SettingsSidebarCard.swift
Normal file
@@ -0,0 +1,12 @@
|
||||
import SwiftUI
|
||||
|
||||
extension View {
|
||||
func settingsSidebarCardLayout() -> some View {
|
||||
self
|
||||
.frame(minWidth: 220, idealWidth: 240, maxWidth: 280, maxHeight: .infinity, alignment: .topLeading)
|
||||
.background(
|
||||
RoundedRectangle(cornerRadius: 12, style: .continuous)
|
||||
.fill(Color(nsColor: .windowBackgroundColor)))
|
||||
.clipShape(RoundedRectangle(cornerRadius: 12, style: .continuous))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user