Various fixes

This commit is contained in:
Ilya Laktyushin 2023-07-12 20:43:19 +02:00
parent 6c7b921030
commit 6783076846
3 changed files with 5 additions and 5 deletions

View File

@ -1227,7 +1227,7 @@ private final class DrawingScreenComponent: CombinedComponent {
case .filled:
nextStyle = .semi
case .semi:
nextStyle = .stroke
nextStyle = .regular
case .stroke:
nextStyle = .regular
}
@ -3480,7 +3480,7 @@ public final class DrawingToolsInteraction {
case .filled:
nextStyle = .semi
case .semi:
nextStyle = .stroke
nextStyle = .regular
case .stroke:
nextStyle = .regular
}

View File

@ -322,10 +322,10 @@ final class ContextResultPanelComponent: Component {
transition.setFrame(view: self.scrollView, frame: CGRect(origin: CGPoint(x: 0.0, y: 0.0), size: CGSize(width: availableSize.width, height: minimizedHeight)))
let visibleTopContentHeight = min(scrollContentSize.height, measureItemSize.height * 3.5 + 19.0)
let visibleTopContentHeight = min(scrollContentSize.height, measureItemSize.height * 3.5)
let topInset = availableSize.height - visibleTopContentHeight
let scrollContentInsets = UIEdgeInsets(top: topInset, left: 0.0, bottom: 19.0, right: 0.0)
let scrollContentInsets = UIEdgeInsets(top: topInset, left: 0.0, bottom: 0.0, right: 0.0)
let scrollIndicatorInsets = UIEdgeInsets(top: topInset + 17.0, left: 0.0, bottom: 19.0, right: 0.0)
if self.scrollView.contentInset != scrollContentInsets {
self.scrollView.contentInset = scrollContentInsets

View File

@ -1449,7 +1449,7 @@ public final class MessageInputPanelComponent: Component {
containerSize: CGSize(width: availableSize.width - panelLeftInset - panelRightInset, height: availablePanelHeight)
)
let panelFrame = CGRect(origin: CGPoint(x: insets.left, y: -panelSize.height + 33.0), size: panelSize)
let panelFrame = CGRect(origin: CGPoint(x: insets.left, y: -panelSize.height + 14.0), size: CGSize(width: panelSize.width, height: panelSize.height + 19.0))
if let panelView = panel.view as? ContextResultPanelComponent.View {
if panelView.superview == nil {
self.insertSubview(panelView, at: 0)