mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Fix for reload button hovering and size of combobox if model with large name is selected. (#2493)
Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
parent
37dbd56153
commit
ef6f0dd421
@ -298,9 +298,11 @@ Rectangle {
|
|||||||
id: contentRow
|
id: contentRow
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
Layout.maximumWidth: 550
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: miniButtonsRow
|
id: miniButtonsRow
|
||||||
clip: true
|
clip: true
|
||||||
|
Layout.maximumWidth: 550
|
||||||
Behavior on Layout.preferredWidth {
|
Behavior on Layout.preferredWidth {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: 300
|
duration: 300
|
||||||
@ -309,7 +311,7 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Layout.preferredWidth: {
|
Layout.preferredWidth: {
|
||||||
if (!comboBox.hovered)
|
if (!(comboBox.hovered || reloadButton.hovered || ejectButton.hovered))
|
||||||
return 0
|
return 0
|
||||||
return (reloadButton.visible ? reloadButton.width : 0) + (ejectButton.visible ? ejectButton.width : 0)
|
return (reloadButton.visible ? reloadButton.width : 0) + (ejectButton.visible ? ejectButton.width : 0)
|
||||||
}
|
}
|
||||||
@ -350,6 +352,7 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
Layout.maximumWidth: 520
|
||||||
id: comboBoxText
|
id: comboBoxText
|
||||||
leftPadding: 10
|
leftPadding: 10
|
||||||
rightPadding: 10
|
rightPadding: 10
|
||||||
|
Loading…
Reference in New Issue
Block a user