Sfoglia il codice sorgente

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 giorni fa
parent
commit
f52a288628
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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