#69 Inventory - Field too small

Posted in ‘Technical Support / Bugs’
This is a public ticket

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

Latest post by Olivier on Friday, 06 December 2024 13:17 UTC

Stephane Hanrez

Hello,

 

Sorry for this stupid request, but in inventory, on a single product, the quantity field is too small to accomodate more than 1 digit... which makes it difficult to have a quick view on your inventory.

I checked in console, and this is due to this css :

 

.com_j2store .inventory-form-control {

   width: 60px;

}

 

Extending this width to 90px makes it perfect, but I couldn't find out how to myself update the css for the admin interface. Could you please update this value in next version, or let me know if there is a way to add a custom.css for the admin interface ?


Thanks

 

 

 

Olivier

Hello Stephane,

In the backend, we are in the process of moving all fields to standard Joomla 4 fields.

We are doing a major cleanup and this will probably be part of it.

In the meantime, you can add 

.com_j2store .inventory-form-control { width: 90px !important; } 

to your template (sometimes it is in user.css or custom.css depending on the template you use).

Olivier.

Stephane Hanrez

Hello,

I'm not sure to which template I need to add that. I tried adding it to my site template's css, but that didn't work, probably because the site template css is not used on the admin side.

I also tried to add it to the administration template css (I use Atum, so default Joomla 4 template). I don't see any custom.css or user.css so I added it directly to template.css, but still didn't work.

Not sure what I'm missing.

Anyway, in the meantime, I simply modified it directly in media/j2store/css/J4/j2store_admin.css

Good news tough that you are reworking all this. Do you have any idea of the timeline for this rework ?

Thanks
Stéphane

Olivier

We are working on 4.1.0, this will bring most UI changes to fields. It should not be too long but we need to test that version thouroughly before we put it out.

Can you send me a screenshot of the field's page where you are experiencing the issue? I could not put my finger on it.

When adding to Atum, since Atum does not allow user.css files (a shortcoming of the admin template), you need to add your CSS to 

  • template.css to see the changes when in debug mode,
  • template.min.css when not in debug mode.

Olivier.

Stephane Hanrez

not sure how to send screenshots here, but it's on page /administrator/index.php?option=com_j2store&view=inventories

 

Stéphane

Olivier

Ah ok! I was looking on single product pages.

I will introduce a fix in the next release. It is too small indeed :-)

You can send screenshots by attaching an image file to the ticket (for info).

Olivier.

Adam Melcher

This exact item has already has a PR waiting for it from 2 weeks ago. 

 

Adam

Olivier

I have updated the PR to account for inventory. Since it is ready, I am closing this ticket. Thank you Stephane for reporting this issue.

Olivier.

Stay Updated

Subscribe for free and be the first to know about the latest features, updates, and new additions.