Skip to content

Commit

Permalink
UI adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
michalrentka committed Feb 9, 2024
1 parent 7d64704 commit 9f03db1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Zotero/Assets/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"citation.title" = "Citation Preview";
"citation.copy_citation" = "Copy Citation";
"citation.copy_bibliography" = "Copy Bibliography";
"citation.preview" = "Preview:";
"citation.preview" = "Preview";
"citation.omit_author" = "Omit Author";
"citation.locator_placeholder" = "Number";
"citation.locator.page" = "Page";
Expand Down
4 changes: 2 additions & 2 deletions Zotero/Extensions/Localizable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ internal enum L10n {
internal static let outputMethod = L10n.tr("Localizable", "citation.output_method", fallback: "Output Method")
/// Output Mode
internal static let outputMode = L10n.tr("Localizable", "citation.output_mode", fallback: "Output Mode")
/// Preview:
internal static let preview = L10n.tr("Localizable", "citation.preview", fallback: "Preview:")
/// Preview
internal static let preview = L10n.tr("Localizable", "citation.preview", fallback: "Preview")
/// Save as HTML
internal static let saveHtml = L10n.tr("Localizable", "citation.save_html", fallback: "Save as HTML")
/// Style
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ class CitationAuthorContentView: UIView {
self.toggle = toggle

NSLayoutConstraint.activate([
title.topAnchor.constraint(equalTo: topAnchor, constant: 10),
title.topAnchor.constraint(equalTo: topAnchor, constant: 12),
title.leadingAnchor.constraint(equalTo: leadingAnchor, constant: 16),
bottomAnchor.constraint(equalTo: title.bottomAnchor, constant: 10),
bottomAnchor.constraint(equalTo: title.bottomAnchor, constant: 12),
trailingAnchor.constraint(equalTo: toggle.trailingAnchor, constant: 16),
toggle.centerYAnchor.constraint(equalTo: centerYAnchor)
])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class CitationLocatorContentView: UIView {
super.init(frame: .zero)

var configuration = UIButton.Configuration.plain()
configuration.contentInsets = NSDirectionalEdgeInsets(top: 10, leading: 16, bottom: 10, trailing: 60)
configuration.contentInsets = NSDirectionalEdgeInsets(top: 12, leading: 16, bottom: 12, trailing: 60)
let button = UIButton(configuration: configuration)
button.setContentHuggingPriority(.required, for: .horizontal)
button.translatesAutoresizingMaskIntoConstraints = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import UIKit
import WebKit

class CitationPreviewContentView: UIView {
private static let verticalInset: CGFloat = 10
private static let verticalInset: CGFloat = 12

private weak var webView: WKWebView!
private weak var activityIndicator: UIActivityIndicatorView!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ final class SingleCitationViewController: UIViewController {
case .preview:
let view = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: "header", for: indexPath)
if let view = view as? SingleCitationSectionView {
view.setup(with: L10n.Citation.preview)
view.setup(with: L10n.Citation.preview.uppercased())
}
return view

Expand Down Expand Up @@ -279,7 +279,7 @@ final class SingleCitationSectionView: UICollectionReusableView {

let label = UILabel()
label.translatesAutoresizingMaskIntoConstraints = false
label.font = .preferredFont(for: .subheadline, weight: .medium)
label.font = .preferredFont(for: .subheadline, weight: .bold)
label.textColor = .systemGray
addSubview(label)
titleLabel = label
Expand Down

0 comments on commit 9f03db1

Please sign in to comment.