Skip to content

Commit

Permalink
Merge branch 'main' into rgb/10447_name
Browse files Browse the repository at this point in the history
  • Loading branch information
adudenamedruby committed Nov 6, 2024
2 parents 5ecec63 + e12d61a commit 6a4ec23
Show file tree
Hide file tree
Showing 18 changed files with 389 additions and 68 deletions.
8 changes: 5 additions & 3 deletions BrowserKit/Sources/ComponentLibrary/Headers/HeaderView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public final class HeaderView: UIView, ThemeApplicable {
static let siteDomainLabelsVerticalSpacing: CGFloat = 12
static let largeFaviconImageSize: CGFloat = 48
static let favIconImageSize: CGFloat = 32
static let smallFaviconImageSize: CGFloat = 20
static let smallFaviconImageSize: CGFloat = 24
static let maskFaviconImageSize: CGFloat = 32
static let horizontalMargin: CGFloat = 16
static let headerLabelDistance: CGFloat = 2
Expand Down Expand Up @@ -90,10 +90,12 @@ public final class HeaderView: UIView, ThemeApplicable {
warningIconView.removeConstraints(warningIconView.constraints)
iconMask.removeConstraints(iconMask.constraints)
viewConstraints.removeAll()
let favIconPadding = (UX.maskFaviconImageSize / 2) - (UX.smallFaviconImageSize / 2)
let favIconLeadingConstant = isWebsiteIcon ? UX.horizontalMargin : UX.horizontalMargin + favIconPadding
viewConstraints.append(contentsOf: [
favicon.leadingAnchor.constraint(
equalTo: self.leadingAnchor,
constant: UX.horizontalMargin
constant: favIconLeadingConstant
),

headerLabelsContainer.topAnchor.constraint(
Expand All @@ -105,7 +107,7 @@ public final class HeaderView: UIView, ThemeApplicable {
constant: -UX.siteDomainLabelsVerticalSpacing
),
headerLabelsContainer.leadingAnchor.constraint(
equalTo: favicon.trailingAnchor,
equalTo: isWebsiteIcon ? favicon.trailingAnchor : iconMask.trailingAnchor,
constant: UX.siteDomainLabelsVerticalSpacing
),
headerLabelsContainer.trailingAnchor.constraint(
Expand Down
6 changes: 5 additions & 1 deletion firefox-ios/Client.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
047F9B3E24E1FF4000CD7DF7 /* SearchQuickLinks.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F9B3A24E1FF4000CD7DF7 /* SearchQuickLinks.swift */; };
047F9B4224E1FF4000CD7DF7 /* ImageButtonWithLabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F9B3C24E1FF4000CD7DF7 /* ImageButtonWithLabel.swift */; };
0A49784A2C53E63200B1E82A /* TrackingProtectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A4978492C53E63200B1E82A /* TrackingProtectionViewController.swift */; };
0A686B3C2CDB70DC0090E146 /* MainMenuTelemetryTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A686B3B2CDB70DC0090E146 /* MainMenuTelemetryTests.swift */; };
0A6875152C91886A00606F53 /* CertificatesHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A6875142C91886A00606F53 /* CertificatesHeaderView.swift */; };
0A7693612C7DD19600103A6D /* CertificatesViewModelTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A7693602C7DD19500103A6D /* CertificatesViewModelTests.swift */; };
0A7693692C81F2A300103A6D /* TrackingProtectionConnectionDetailsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A7693682C81F2A200103A6D /* TrackingProtectionConnectionDetailsView.swift */; };
Expand Down Expand Up @@ -2270,6 +2271,7 @@
0A4978492C53E63200B1E82A /* TrackingProtectionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TrackingProtectionViewController.swift; sourceTree = "<group>"; };
0A574D09BF8D9E37D6C9C654 /* bn */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = bn; path = bn.lproj/ClearHistoryConfirm.strings; sourceTree = "<group>"; };
0A5B4CE9B0996AE804491134 /* an */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = an; path = an.lproj/Shared.strings; sourceTree = "<group>"; };
0A686B3B2CDB70DC0090E146 /* MainMenuTelemetryTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainMenuTelemetryTests.swift; sourceTree = "<group>"; };
0A6875142C91886A00606F53 /* CertificatesHeaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CertificatesHeaderView.swift; sourceTree = "<group>"; };
0A734328A164466314ECE4BE /* ia */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ia; path = ia.lproj/Menu.strings; sourceTree = "<group>"; };
0A7693602C7DD19500103A6D /* CertificatesViewModelTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CertificatesViewModelTests.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -11466,6 +11468,7 @@
children = (
8AC225642B6D3FA400CDA7FD /* HomepageTelemetryTests.swift */,
E1B9A2C32CADA78300F6A0E9 /* ToolbarTelemetryTests.swift */,
0A686B3B2CDB70DC0090E146 /* MainMenuTelemetryTests.swift */,
);
path = Telemetry;
sourceTree = "<group>";
Expand Down Expand Up @@ -16657,6 +16660,7 @@
3B39EDBA1E16E18900EF029F /* CustomSearchEnginesTest.swift in Sources */,
0AFF7F662C7784F100265214 /* TrackingProtectionModelTests.swift in Sources */,
C80C11EE28B3C8B80062922A /* WallpaperMetadataTrackerTests.swift in Sources */,
0A686B3C2CDB70DC0090E146 /* MainMenuTelemetryTests.swift in Sources */,
8C8D8C7A2AA067AD00490D32 /* FakespotCoordinatorTests.swift in Sources */,
C8E531CA29E5F7D300E03FEF /* URLScannerTests.swift in Sources */,
5AC7110729F822E60011ED11 /* MockTabSessionStore.swift in Sources */,
Expand Down Expand Up @@ -25169,7 +25173,7 @@
repositoryURL = "https://github.com/mozilla/rust-components-swift.git";
requirement = {
kind = exactVersion;
version = 134.0.20241105050337;
version = 134.0.20241106050321;
};
};
435C85EE2788F4D00072B526 /* XCRemoteSwiftPackageReference "glean-swift" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/mozilla/rust-components-swift.git",
"state" : {
"revision" : "5429c5d355c5c35d67ab1f7b59349c79b3985932",
"version" : "134.0.20241105050337"
"revision" : "e79b839b2d723725fb41fffb0be0082eeec0b9e1",
"version" : "134.0.20241106050321"
}
},
{
Expand Down
Loading

0 comments on commit 6a4ec23

Please sign in to comment.