ソースを参照

Prevent action tile captions from clipping descenders.

This increases the tile height slightly so labels like "New meeting" render fully without cutting off the final characters.

Made-with: Cursor
huzaifahayat12 4 日 前
コミット
f52a288628
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  1. 2 1
      zoom_app/ViewController.swift

+ 2 - 1
zoom_app/ViewController.swift

@@ -3755,7 +3755,8 @@ class ViewController: NSViewController {
3755 3755
         let root = NSView()
3756 3756
         root.translatesAutoresizingMaskIntoConstraints = false
3757 3757
         root.widthAnchor.constraint(equalToConstant: 88).isActive = true
3758
-        root.heightAnchor.constraint(equalToConstant: 70).isActive = true
3758
+        // Give caption text a little more vertical room so descenders (e.g. "g") are never clipped.
3759
+        root.heightAnchor.constraint(equalToConstant: 76).isActive = true
3759 3760
 
3760 3761
         let iconButton = NSButton(title: "", target: action == nil ? nil : self, action: action)
3761 3762
         iconButton.isBordered = false