File tree Expand file tree Collapse file tree 2 files changed +20
-22
lines changed Expand file tree Collapse file tree 2 files changed +20
-22
lines changed Original file line number Diff line number Diff line change @@ -54,17 +54,16 @@ struct ProjectFormView: View {
54
54
}
55
55
. padding ( )
56
56
. overlay {
57
- if copied {
58
- Text ( Lingua . ProjectForm. copiedToClipboard)
59
- . padding ( 8 )
60
- . background (
61
- Color . black
62
- . opacity ( 0.4 )
63
- )
64
- . clipShape ( RoundedRectangle ( cornerRadius: 6 ) )
65
- . frame ( maxWidth: . infinity, maxHeight: . infinity, alignment: . top)
66
- . padding ( . top, 6 )
67
- }
57
+ Text ( Lingua . ProjectForm. copiedToClipboard)
58
+ . padding ( 8 )
59
+ . background (
60
+ Color . black
61
+ . opacity ( 0.4 )
62
+ )
63
+ . clipShape ( RoundedRectangle ( cornerRadius: 6 ) )
64
+ . frame ( maxWidth: . infinity, maxHeight: . infinity, alignment: . top)
65
+ . padding ( . top, 6 )
66
+ . shouldAddView ( copied)
68
67
}
69
68
}
70
69
}
Original file line number Diff line number Diff line change @@ -40,17 +40,16 @@ struct DirectoryInputField: View {
40
40
. padding ( . vertical, 5 )
41
41
. background (
42
42
GeometryReader { geometry in
43
- if isHovered {
44
- Text ( directoryPath)
45
- . font ( . caption)
46
- . padding ( 8 )
47
- . background ( Color . black. opacity ( 0.8 ) )
48
- . foregroundColor ( . white)
49
- . cornerRadius ( 8 )
50
- . frame ( width: geometry. size. width, alignment: . center)
51
- . offset ( y: - geometry. size. height)
52
- . transition ( . opacity)
53
- }
43
+ Text ( directoryPath)
44
+ . font ( . caption)
45
+ . padding ( 8 )
46
+ . background ( Color . black. opacity ( 0.8 ) )
47
+ . foregroundColor ( . white)
48
+ . cornerRadius ( 8 )
49
+ . frame ( width: geometry. size. width, alignment: . center)
50
+ . offset ( y: - geometry. size. height)
51
+ . transition ( . opacity)
52
+ . shouldAddView ( isHovered)
54
53
}
55
54
)
56
55
}
You can’t perform that action at this time.
0 commit comments