mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-10-18 01:46:47 +08:00
最近连接悬浮框不再压住连接弹窗的确认按钮
悬浮框当初为了盖住 ScrollView 给了 z:50,正好和模态层(z 39~51)同层, 鼠标停在列表上时黑框会盖住"对等连接已建立"的确认按钮。降到 z:20(模态层 之下、标题菜单之上),并在连接弹窗打开时直接不显示。
This commit is contained in:
@@ -1227,7 +1227,9 @@ export component MainWindow inherits Window {
|
||||
|
||||
// Match the ImGui recent-connection tooltip while keeping it outside the
|
||||
// clipped ScrollView. It is deliberately limited to the thumbnail area.
|
||||
if root.recent-tooltip-visible: Rectangle {
|
||||
// Stay under the modal layer (z >= 39): a hover tooltip that outlives the
|
||||
// pointer can otherwise cover a dialog button and hide it from the user.
|
||||
if root.recent-tooltip-visible && !root.connection-dialog-open: Rectangle {
|
||||
x: root.recent-tooltip-x;
|
||||
y: root.recent-tooltip-y;
|
||||
width: root.recent-tooltip-width;
|
||||
@@ -1236,7 +1238,7 @@ export component MainWindow inherits Window {
|
||||
border-width: 1px;
|
||||
border-color: #ffffff38;
|
||||
border-radius: 5px;
|
||||
z: 50;
|
||||
z: 20;
|
||||
|
||||
VerticalLayout {
|
||||
padding: 8px;
|
||||
|
||||
Reference in New Issue
Block a user