Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Speed King on August 15, 2022, 01:59:07 AM

Title: 'Edit profile' posts field width
Post by: Speed King on August 15, 2022, 01:59:07 AM
Hello,

I'm using SMF 2.1
When I try to edit number of posts for users with more than 10,000 posts, the last digit in appropriate field is not visible:

Click => (https://i.postimg.cc/wyKSwG6b/2022-08-15.png) (https://postimg.cc/wyKSwG6b)

Is it possible to increase the width of that field?
Title: Re: 'Edit profile' posts field width
Post by: GL700Wing on August 15, 2022, 08:47:09 AM
Quote from: Speed King on August 15, 2022, 01:59:07 AMHello,

I'm using SMF 2.1
When I try to edit number of posts for users with more than 10,000 posts, the last digit in appropriate field is not visible:

...

Is it possible to increase the width of that field?
@Speed King : Yep - you can increase the width of what is displayed in this input field as follows:

Edit  ./Themes/default/css/index.css  and add the following line to the end of the file:
dl.settings dd input#posts {
    width: calc(8ch + 15px + 0.8em);
    }

In the code above the SMF 2.1 default value of '4ch' has been increased to '8ch' and you can adjust the display width of this field to suit your needs by increasing/decreasing this value.
Title: Re: 'Edit profile' posts field width
Post by: Speed King on August 15, 2022, 11:16:28 AM
Thanks, problem solved  8)
Title: Re: 'Edit profile' posts field width
Post by: Steve on August 15, 2022, 12:18:03 PM
Nice GL!