It looks like there's a css class controlling the width. .bx--overflow-menu-options has width:10rem;

swapping that to fit-content fixes it:

You can handle this by adding a link to a css file in the spec.json

And in your css file you can add
.popover.bx--overflow-menu-options{
width:fit-content !important;
}
Republish the extension and it should look fine.

------------------------------
Paul Mendelson
------------------------------
Original Message:
Sent: Wed February 14, 2024 05:32 AM
From: Scott Hughes
Subject: SampleExtensionMenuUrlLinks Extension in v12
Hi
We use the SampleExtensionMenuUrlLinks Extension in our current environment (11.2.4) to display useful links:

In our Sandbox environment (12.0.2) it displays differently however:

Its as though the Menu Items has gone fixed width.
I can't see anyway to change this in the Extension Code
Is anyone aware of way to change this?
Cheers
------------------------------
Scott Hughes
------------------------------