mirror of
https://github.com/enso-org/enso.git
synced 2024-12-22 15:21:43 +03:00
Fix auto-scrolling and increase permitted dropdown width (#11608)
I think the date format dropdown is absurdly wide, but we discussed it yesterday. Auto-scrolling is fixed, so it would work with wider inputs. <img width="766" alt="image" src="https://github.com/user-attachments/assets/2d230e39-68bb-4ed3-81db-2458385c8b44">
This commit is contained in:
parent
8e9e7650a3
commit
6b758a0938
@ -49,7 +49,7 @@ const activity = shallowRef<VNode>()
|
||||
|
||||
// How much wider a dropdown can be than a port it is attached to, when a long text is present.
|
||||
// Any text beyond that limit will receive an ellipsis and sliding animation on hover.
|
||||
const MAX_DROPDOWN_OVERSIZE_PX = 150
|
||||
const MAX_DROPDOWN_OVERSIZE_PX = 390
|
||||
|
||||
const floatReference = computed(
|
||||
() => enclosingTopLevelArgument(widgetRoot.value, tree) ?? widgetRoot.value,
|
||||
|
@ -148,7 +148,7 @@ export interface DropdownEntry {
|
||||
|
||||
&:hover {
|
||||
background-color: color-mix(in oklab, var(--dropdown-bg) 50%, white 50%);
|
||||
span {
|
||||
.itemContent {
|
||||
--text-scroll-max: calc(var(--dropdown-max-width) - 28px);
|
||||
will-change: transform;
|
||||
animation: 6s 1s infinite text-scroll;
|
||||
|
Loading…
Reference in New Issue
Block a user