Forráskód Böngészése

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 3 hónapja
szülő
commit
f52a288628
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      zoom_app/ViewController.swift

+ 2 - 1
zoom_app/ViewController.swift

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