From 39e759d015af5d82f387b57a8d137bdeb844d430 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Fri, 19 Jun 2026 22:40:08 +0800
Subject: [PATCH] Fix historical Apple default note migration
---
src/Apptag/AppGridCollectionView.swift | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/Apptag/AppGridCollectionView.swift b/src/Apptag/AppGridCollectionView.swift
index ae2714e..eda51f0 100644
--- a/src/Apptag/AppGridCollectionView.swift
+++ b/src/Apptag/AppGridCollectionView.swift
@@ -949,14 +949,13 @@
let buttonDotsGap: CGFloat = 6
let dotsHeight: CGFloat = 10
let dotsWidth = dotsView.preferredWidth
- let fullTitleWidth = ceil(titleLabel.attributedStringValue.size().width)
let titleX = visualFrame.minX + paddingLeft + iconSize + iconTextGap
let buttonsWidth = buttonSize * 2 + buttonGap
let buttonsGroupMinX = visualFrame.maxX - paddingRight - buttonsWidth
let textRight = visualFrame.maxX - controlZoneWidth
let availableTextWidth = max(1, textRight - titleX)
- let titleWidth = min(fullTitleWidth, availableTextWidth)
+ let titleWidth = availableTextWidth
let titleHeight: CGFloat = 32
let detailHeight: CGFloat = 68
let lineGap: CGFloat = 8
@@ -1109,6 +1108,7 @@
label.isBordered = false
label.lineBreakMode = lineBreakMode
label.maximumNumberOfLines = 1
+ label.alignment = .center
label.font = font
}
@@ -1217,7 +1217,7 @@
private func formattedTipDetail(_ text: String) -> String {
text
- .replacingOccurrences(of: "\\s*(?:-->|->|>|→|>)\\s*", with: "\n", options: .regularExpression)
+ .replacingOccurrences(of: "\\s*(?:-->|->|>|→|>|,)\\s*", with: "\n", options: .regularExpression)
.replacingOccurrences(of: "[ \\t]{2,}", with: " ", options: .regularExpression)
.replacingOccurrences(of: "\\n{2,}", with: "\n", options: .regularExpression)
.trimmingCharacters(in: .whitespacesAndNewlines)
--
Gitblit v1.9.3