Skip to content

Commit

Permalink
improve small screen display
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBAndrews committed Jan 29, 2025
1 parent 857f064 commit 925bdff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,7 @@ extension InteractionBarEditorView {
var header: some View {
SettingsHeaderView(
title: "Interaction Bar",
description: "Tap and hold items to add, remove, or rearrange them.") {
Image(systemName: Icons.votesSquare)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 64)
.foregroundStyle(palette.accent)
.padding([.horizontal, .top], 20)
}
description: "Tap and hold items to add, remove, or rearrange them.") {}
.background(palette.background, in: .rect(cornerRadius: Constants.main.largeItemCornerRadius))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,17 @@ struct InteractionBarEditorView<Configuration: InteractionBarConfiguration>: Vie
VStack(spacing: Constants.main.standardSpacing) {
header
buttons
Spacer()
infoCapsule
postPreview.zIndex(barPickedUpItem == nil ? 0 : 1)
Divider()
readoutSelectors
Divider()
tray.zIndex(trayPickedUpItem == nil ? 0 : 1)
Spacer()
}
.frame(maxWidth: .infinity)
.padding(Constants.main.standardSpacing)
.padding(.bottom, Constants.main.standardSpacing)
.background(palette.groupedBackground)
.coordinateSpace(.named("editor"))
}
Expand Down
12 changes: 12 additions & 0 deletions Mlem/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,9 @@
},
"Downvote" : {

},
"Downvote counter" : {

},
"Downvotes" : {

Expand Down Expand Up @@ -1841,6 +1844,9 @@
},
"Reply" : {

},
"Reply counter" : {

},
"Report" : {

Expand Down Expand Up @@ -1932,6 +1938,9 @@
},
"Score" : {

},
"Score counter" : {

},
"Search" : {

Expand Down Expand Up @@ -2533,6 +2542,9 @@
},
"Upvote" : {

},
"Upvote counter" : {

},
"Upvote on Save" : {

Expand Down

0 comments on commit 925bdff

Please sign in to comment.