TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 12:39:14 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,106
  • Total Topics: 21,213
  • Online today: 358
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 74
  • Total: 75
  • @rjen

Article / Downloads functions Block

Started by Jippo, December 02, 2018, 09:21:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jippo

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.

@rjen

Depends what 'block' you mean.?

Can you explain? Perhaps a screenshot or link to the page in question ?
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Jippo

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

lurkalot

Quote from: @rjen on December 02, 2018, 09:28:03 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.

Jippo

Exactly, I wish to shorten the space on the left side of the contents within the block.

@rjen

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

<div class="post">
<ul>';


update to

<div class="post">
<ul style="padding-inline-start:20px;">';


You can play with the 20px to make it less or more...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Jippo

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.

@rjen

Running Latest TP on SMF2.1 at: www.fjr-club.nl

Jippo


lurkalot

Quote from: Jippo on December 02, 2018, 10: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.

:hmm: Well actually I don't think the calendar should be aligned to the left. :o