Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ struct EventFormCard<Content: View>: View {

var body: some View {
content()
.padding(10)
.padding(8)
.frame(maxWidth: .infinity, alignment: .leading)
.background(theme.surfaceOverlayColor)
.clipShape(RoundedRectangle(cornerRadius: NativeWebLayoutTokens.radiusDefault))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ struct EventFormCompactDateField: View {
var body: some View {
TextField("Date", text: $text)
.textFieldStyle(.plain)
.font(.rubik(13))
.font(.rubik(NativeWebLayoutTokens.fontSizeBody))
.foregroundStyle(theme.textColor)
.padding(.horizontal, 8)
.padding(.vertical, 6)
.background(theme.surfacePanelColor)
.clipShape(RoundedRectangle(cornerRadius: 4))
.frame(minHeight: 38)
.background(theme.surfaceOverlayColor)
.clipShape(RoundedRectangle(cornerRadius: NativeWebLayoutTokens.radiusDefault))
.overlay {
RoundedRectangle(cornerRadius: 4)
RoundedRectangle(cornerRadius: NativeWebLayoutTokens.radiusDefault)
.stroke(isFocused ? theme.accentColor : theme.borderColor, lineWidth: 1)
}
.focused($isFocused)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ struct EventFormScheduleSection: View {
}

var body: some View {
VStack(alignment: .leading, spacing: 8) {
VStack(alignment: .leading, spacing: 6) {
Toggle("All day", isOn: Binding(
get: { draft.schedule.kind == .allDay },
set: { model.setDraftAllDay($0) }
Expand Down Expand Up @@ -43,6 +43,8 @@ struct EventFormScheduleSection: View {
displayedComponents: [.hourAndMinute]
)
.labelsHidden()
.controlSize(.small)
.frame(minHeight: 38)
.disabled(scheduleLocked)
.accessibilityIdentifier("compass-event-form-start")
}
Expand All @@ -67,6 +69,8 @@ struct EventFormScheduleSection: View {
displayedComponents: [.hourAndMinute]
)
.labelsHidden()
.controlSize(.small)
.frame(minHeight: 38)
.disabled(scheduleLocked)
.accessibilityIdentifier("compass-event-form-end")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public struct EventFormView: View {

private func formPanel(draft: GridEventDraft) -> some View {
let isReadOnly = model.isEventFormReadOnly(for: draft)
return VStack(alignment: .leading, spacing: 12) {
return VStack(alignment: .leading, spacing: 10) {
EventFormToolbarView(model: model, draft: draft)
.pageJumpChipAnchor(id: "form-actions")

Expand All @@ -39,7 +39,7 @@ public struct EventFormView: View {
set: { model.updateDraftFromForm(title: $0) }
))
.textFieldStyle(.plain)
.font(.rubik(16))
.font(.rubik(NativeWebLayoutTokens.fontSizeBody))
.foregroundStyle(theme.textColor)
.focused($titleFocused)
.disabled(isReadOnly)
Expand All @@ -48,7 +48,7 @@ public struct EventFormView: View {

ScrollViewReader { proxy in
ScrollView {
VStack(alignment: .leading, spacing: 12) {
VStack(alignment: .leading, spacing: 10) {
EventFormCard {
VStack(alignment: .leading, spacing: 10) {
EventFormScheduleSection(
Expand Down Expand Up @@ -171,7 +171,7 @@ public struct EventFormView: View {
.font(.rubik(14, weight: .medium))
.foregroundStyle(theme.onAccentColor)
.padding(.horizontal, 20)
.frame(maxWidth: .infinity, minHeight: 36)
.frame(maxWidth: .infinity, minHeight: 36, maxHeight: 36)
.background(theme.accentColor)
.clipShape(RoundedRectangle(cornerRadius: NativeWebLayoutTokens.radiusDefault))
}
Expand Down
Loading