Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang committed Sep 18, 2024
1 parent 71cdb2b commit 1c9ebc4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion PlatformUI/PlatformUI/Components/Input/PlatformInput.swift
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,6 @@ open class PlatformBooleanInputViewModel: PlatformValueInputViewModel {
return AnyView(
HStack(spacing: 0) {
self.header.createView(parentStyle: style)
.fixedSize()
Spacer()
Toggle("", isOn: self.inputBinding)
.toggleStyle(SwitchToggleStyle(tint: ThemeColor.SemanticColor.colorPurple.color))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ public class dydxMarketPositionViewModel: PlatformViewModel {
HStack(alignment: .top, spacing: 12) {
ForEach(views.indices, id: \.self) { index in
views[index]
.fixedSize(horizontal: true, vertical: false)
.padding(.vertical, 8)
if index < views.count - 1 {
DividerModel().createView()
Expand All @@ -167,7 +166,6 @@ public class dydxMarketPositionViewModel: PlatformViewModel {
ForEach(views.indices, id: \.self) { index in
Spacer()
views[index]
.fixedSize(horizontal: true, vertical: false)
.padding(.vertical, 8)
Spacer()
if index < views.count - 1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public class dydxTradeInputViewModel: PlatformViewModel {
.topAligned()
}
self.editViewModel?.createView(parentStyle: style)
.frame(width: self.isOrderbookCollapsed ? fullWidth: editViewWidth)
.frame(width: self.isOrderbookCollapsed ? fullWidth : editViewWidth)
}

VStack(spacing: -8) {
Expand Down

0 comments on commit 1c9ebc4

Please sign in to comment.