Support

Akeeba Ticket System

#38191 My Tickets - Search - State box too small to fit the text???

Posted in ‘Akeeba Ticket System for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
4
PHP version
8
Akeeba Ticket System version
5.2.2

Latest post by dunwin on Monday, 19 December 2022 08:05 CST

dunwin

 Please look at the bottom of this page (under Support Policy Summary) for our support policy summary, containing important information regarding our working hours and our support policy. Thank you!

This is a minor issue which I notice on my site and also Akeeba's own site.

When in My Tickets and you do a search say for Pending, Open or Closed, The State selection has the types but the lettering is vertical rather than horizontal. It looks to me like CSS issue.

See screen shots from both my site and Akeeba's which show the issue.

Kind regards

David

 

 David Unwin - London UK

nicholas
Akeeba Staff
Manager

Huh. Something is wrong with your browser.

This is how it actually looks like (I took the screenshot as I started answering this ticket):

screenshot_2022-12-16_at_19.40.08.png

By the way, the selection is Joomla's Fancy Select layout which uses Choices.js under the hood, including the CSS provided by Choices.js. I apply custom colours in Dark Mode on this site but I don't change the layout CSS rules. You can actually see how I do it in our DarkMagic plugin if you don't believe me; that's the good thing about Open Source software, you can read the source code instead of trusting what any person tells you.

I have not the kind of broken layout in any browser or OS that I've tried and I have tried all of the latest versions of Firefox, Safari, Google Chrome, Microsoft Edge, Opera, and Brave across macOS Ventura, Windows 11, and Linux (KDE Neon and Kubuntu). I even checked on an iPad, two iPhones, and an Android with Safari on iOS/iPadOS and Google Chrome on Android but it scales down correctly, it's not a matter of responsive sizing screwing up.

Which browser, browser version, and Operating System are you using?

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

dunwin

Hi Nicholas

I was using  Chrome version 108.0.5359.125 on a Windows 11 laptop

When I use Chrome on my Android Phone the State shows perfectly as per your screen shot. However if I select the Chrome option on my Android phone to Desktop Site, I get the same problem as on my laptop. Also if I use Microsoft edge on my laptop, I get the same problem.

Kind regards

David

 David Unwin - London UK

nicholas
Akeeba Staff
Manager

The screenshot above was from Microsoft Edge. I don't have Windows at the moment, I have Linux and macOS. However, Windows or macOS or Linux doesn't matter because all Chromium-based browsers use the same Blink engine on all platforms except iOS/iPadOS (where they use are required to use WebKit).

Also, as I already explained, this part is not styled by our stylesheets. It's styled by Joomla itself. It's the Choices.js custom dropdown (layout joomla.form.field.list-fancy-select). If you look at the layout you'll see that it's using a WebComponent which is impossible to override in an extension — you can only do that at a global level either by hacking core or doing a lot of undocumented assets juggling in your site's template.

That's all I can tell you. The styling is Joomla's responsibility. If it's broken, it's Joomla's styling that's broken.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

nicholas
Akeeba Staff
Manager

It took me half a day but I could reproduce it. And it's a Joomla bad design decision :)

Reproduction:

  • Go to a support category (NOT My Tickets).
  • In the state filter remove the default item (labelled “- State -”).
  • The select box becomes too narrow and its drop-down styling breaks.

If you inspect the element you will see that the small width comes from the shadow DOM of the WebComponent <joomla-field-fancy-select>. This is defined in Joomla and its shadow DOM controlled by JavaScript provided with Joomla itself. We cannot change it in our code. This is exactly the reason I've said years ago that WebComponents are a terrible idea in Joomla: they are inflexible.

Joomla creates a Choices.js element inside this WebComponent without the ability to pass ANY kind of CSS class or inline CSS (style attribute) to the Choices.js element. Assigning a min-width property to the WebComponent itself, either by a CSS rule or with an inline style attribute, does not work because WebComponents are not real HTML elements, they are just placeholder for a piece of JavaScript to create a shadow DOM. As a result, we cannot give it a minimum width. The only "solution" would be giving the containing DIV a minimum width, e.g. 200px. However, this is arbitrary and causes flow problems in smaller screen sizes.

The real solution would be being able to hide the "Press to select" label in the dropdown. There is an option in Choices.js to do that BUT we cannot apply it because the whole goddamn thing is a WebComponent which acts as a sealed container we cannot modify without forking Joomla's JavaScript for that WebComponent and hacking core (replace Joomla's JavaScript for the WebComponent with our own) which would of course get our extensions delisted from the Joomla Extensions Directory.

Unfortunately, this cannot be fixed in any sensible manner.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

dunwin

Hi Nicholas,

Thank you for taking time to look at this, particularly at the weekend!

I understand the situation you find yourself (Ie Akeeba) in regards to the last paragraph in your last post. I for one would be devasted if we lost your key prodcts.

We can live with this problem, even though it is irritating, it is not a 'show stopper' for us and we can live with it for the small number of people who will be affected by it.

Kind regards

David

 David Unwin - London UK

nicholas
Akeeba Staff
Manager

I have notified the Joomla Experience Team about that and hopefully it will be sorted out eventually.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

dunwin

Thank you Nicholas,

We can close this ticket now.

David

 David Unwin - London UK

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!