Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type" : "bugfix",
"description" : "Fix issue where the SSO region selector dropdown was getting cut off at the bottom of the window"
}
24 changes: 24 additions & 0 deletions plugins/core/webview/src/q-ui/components/ssoLoginForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
name="regions"
v-model="selectedRegion"
@change="handleRegionInput"
size="1"
onfocus='this.size=10;'
onblur='this.size=1;'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to explicitly set onBlur?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right we don't need to explicity set the Onblur if we set it onChange.

onchange='this.size=1; this.blur();'
tabindex="0"
>
<option v-for="region in regions" :key="region.id" :value="region.id">
Expand Down Expand Up @@ -158,6 +162,26 @@ export default defineComponent({
font-size: 12px;
}

.region-select {
height: auto;
box-sizing: border-box;
border-radius: 4px;
padding: 5px;
}

.region-select option {
padding: 5px;
cursor: pointer;
width: auto;
box-sizing: border-box;
}

.region-select:focus {
width: auto !important;
outline: none;
position: absolute;
}

.invalid-start-url {
color: red !important;
margin-left: 3px;
Expand Down
Loading