瀏覽代碼

added tooltip to path in vault list cell

Tobias Hagemann 4 年之前
父節點
當前提交
a121c7d0fe
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      main/ui/src/main/resources/fxml/vault_list_cell.fxml

+ 6 - 1
main/ui/src/main/resources/fxml/vault_list_cell.fxml

@@ -3,6 +3,7 @@
 <?import org.cryptomator.ui.controls.FontAwesome5IconView?>
 <?import javafx.geometry.Insets?>
 <?import javafx.scene.control.Label?>
+<?import javafx.scene.control.Tooltip?>
 <?import javafx.scene.layout.HBox?>
 <?import javafx.scene.layout.VBox?>
 <HBox xmlns:fx="http://javafx.com/fxml"
@@ -21,7 +22,11 @@
 		</VBox>
 		<VBox spacing="4" HBox.hgrow="ALWAYS">
 			<Label styleClass="header-label" text="${controller.vault.displayName}"/>
-			<Label styleClass="detail-label" text="${controller.vault.displayablePath}" textOverrun="CENTER_ELLIPSIS"/>
+			<Label styleClass="detail-label" text="${controller.vault.displayablePath}" textOverrun="CENTER_ELLIPSIS">
+				<tooltip>
+					<Tooltip text="${controller.vault.displayablePath}"/>
+				</tooltip>
+			</Label>
 		</VBox>
 	</children>
 </HBox>