TinyPortal

Development => Support => Topic started by: Jippo on December 02, 2018, 02:21:47 PM

Title: Article / Downloads functions Block
Post by: Jippo on December 02, 2018, 02:21:47 PM
I understand the the downloads block is built into the tiny portal, I was wondering if there is a way to modify the block itself to shift the contents more to the left hand side of the block to space out the download file names.
Title: Re: Tinyportal Downloads Block
Post by: @rjen on December 02, 2018, 02:28:03 PM
Depends what ‘block’ you mean.?

Can you explain? Perhaps a screenshot or link to the page in question ?
Title: Re: Tinyportal Downloads Block
Post by: Jippo on December 02, 2018, 02:36:56 PM
I should have specified a bit more, the block in mention is the DOWNLOADS BLOCK.

I have the block on the right side panel of tinyportal, I am running the newest SMF forums and tinyportal.

The contents of the block it has a spacer on the left side, I wish to move align the contents a little more to the left.

I have attached an picture of the block
Title: Re: Tinyportal Downloads Block
Post by: lurkalot on December 02, 2018, 02:42:06 PM
Depends what ‘block’ you mean.?

Can you explain? Perhaps a screenshot or link to the page in question ?

That'll be the "Article / Downloads functions" block.  If you look everything is centered, so if you have a long-ish file name it wraps putting it on two lines. When there's a fair bit of space either side which could be made use of.

Think that's what Jippo is referring to.
Title: Re: Tinyportal Downloads Block
Post by: Jippo on December 02, 2018, 02:46:11 PM
Exactly, I wish to shorten the space on the left side of the contents within the block.
Title: Re: Article / Downloads functions Block
Post by: @rjen on December 02, 2018, 03:01:44 PM
I get it.

Thing is that is actually controlled by the default <ul>  settings of the browser...

To control it, you can make this code change:
To the file TPSubs.php (found in sources)

Line 2756
Find
Code: [Select]
<div class="post">
<ul>';

update to
Code: [Select]
<div class="post">
<ul style="padding-inline-start:20px;">';

You can play with the 20px to make it less or more...
Title: Re: Article / Downloads functions Block
Post by: Jippo on December 02, 2018, 03:01:56 PM
If you look at the attachment the Calendar is aligned to the left, I wish to do the same with the contents of the Article/Downloads functions Block.
Title: Re: Article / Downloads functions Block
Post by: @rjen on December 02, 2018, 03:05:03 PM
I just posted the answer for you...
Title: Re: Article / Downloads functions Block
Post by: Jippo on December 02, 2018, 03:07:56 PM
Awsome, thanks a million!
Title: Re: Article / Downloads functions Block
Post by: lurkalot on December 02, 2018, 03:09:38 PM
If you look at the attachment the Calendar is aligned to the left, I wish to do the same with the contents of the Article/Downloads functions Block.

 :hmm: Well actually I don't think the calendar should be aligned to the left. :o
Title: Re: Article / Downloads functions Block
Post by: Jippo on December 02, 2018, 03:21:02 PM
I agree, on the Calendar, it would look better centered in the block, but it looks aligned with all the other blocks in a pleasing way, maybe could be an option for the Calendar block in the future (an alignment option)