Add max length to menu

This commit is contained in:
yicheng 2019-12-01 22:01:39 +08:00
parent 2f1bb669e5
commit 89dfe3b343
2 changed files with 7 additions and 5 deletions

View File

@ -288,7 +288,7 @@
<items>
<menuItem title="Manage" keyEquivalent="m" id="Dwg-Qb-2AU">
<connections>
<segue destination="6WI-Hi-v9j" kind="modal" id="Ot5-gq-dhX"/>
<segue destination="6WI-Hi-v9j" kind="show" id="Ot5-gq-dhX"/>
</connections>
</menuItem>
<menuItem title="Update" keyEquivalent="u" id="I2P-Wd-Ns7">
@ -608,7 +608,7 @@
<tableColumns>
<tableColumn identifier="url" editable="NO" width="176" minWidth="40" maxWidth="1000" id="C79-J5-30z">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Url">
<font key="font" metaFont="menu" size="11"/>
<font key="font" metaFont="controlContent" size="11"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
</tableHeaderCell>
@ -648,7 +648,7 @@
</tableColumn>
<tableColumn identifier="configName" width="86" minWidth="40" maxWidth="1000" id="lRE-Xa-euB">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Config Name">
<font key="font" metaFont="menu" size="11"/>
<font key="font" metaFont="controlContent" size="11"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
</tableHeaderCell>
@ -688,7 +688,7 @@
</tableColumn>
<tableColumn identifier="updateTime" width="95" minWidth="40" maxWidth="1000" id="xoc-hs-9qa">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Update Time">
<font key="font" metaFont="menu" size="11"/>
<font key="font" metaFont="controlContent" size="11"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
</tableHeaderCell>

View File

@ -42,7 +42,9 @@ class ProxyGroupMenuItemView: MenuItemBaseView {
// space
selectProxyLabel.leftAnchor.constraint(greaterThanOrEqualTo: groupNameLabel.rightAnchor, constant: 30).isActive = true
// max
effectView.widthAnchor.constraint(lessThanOrEqualToConstant: 300).isActive = true
// font & color
groupNameLabel.font = type(of: self).labelFont
selectProxyLabel.font = type(of: self).labelFont