Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
StefKors committed Nov 1, 2024
1 parent 7fa60df commit 0dd5911
Showing 1 changed file with 12 additions and 26 deletions.
38 changes: 12 additions & 26 deletions Shared/UserInterface/Views/AutoSizingWebLinks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,14 @@ struct GitLabAutoSizingWebLinks: View {

var body: some View {
ViewThatFits(in: .horizontal) {
WebLink(
linkText: group + path + reference,
destination: request.targetProject?.webURL
)
Text(group + path + reference)
.foregroundStyle(.secondary)

WebLink(
linkText: path + reference,
destination: request.targetProject?.webURL
)

WebLink(
linkText: reference,
destination: request.targetProject?.webURL
)
Text(path + reference)
.foregroundStyle(.secondary)

Text(reference)
.foregroundStyle(.secondary)
}
.frame(minWidth: 50, idealWidth: 320, maxWidth: 400, alignment: .leading)
.buttonStyle(.plain)
Expand Down Expand Up @@ -98,21 +91,14 @@ struct GitHubAutoSizingWebLinks: View {

var body: some View {
ViewThatFits(in: .horizontal) {
WebLink(
linkText: group + path + reference,
destination: url
)

WebLink(
linkText: path,
destination: url
)
Text(group + path + reference)
.foregroundStyle(.secondary)

WebLink(
linkText: reference,
destination: url
)
Text(path + reference)
.foregroundStyle(.secondary)

Text(reference)
.foregroundStyle(.secondary)
}
.frame(minWidth: 50, idealWidth: 320, maxWidth: 400, alignment: .leading)
.buttonStyle(.plain)
Expand Down

0 comments on commit 0dd5911

Please sign in to comment.