On 17/05/2016 7:43 AM, Ryan Ollos wrote:



From: [email protected]
Sent: Monday, May 16, 5:40 PM
Subject: [Trac] Expanding the width of the TRAC ticket form
To: Trac Users

Does anyone know the setting which needs to be changed to expand the
width of the actual TRAC ticket form.  I have attached a pic of what I'd
like to expand.  There is so much whitespace around the actual ticket.

(1) In /var/www/trac/myproject/templates/site.html ...

  <!--! Add site-specific style sheet -->
  <head py:match="head" py:attrs="select('@*')">
    ${select('*|comment()|text()')}
    <link rel="stylesheet" type="text/css"
          href="${href.chrome('site/myproject.css')}" />
  </head>

That will insert myproject.css into the page *after* all the trac css.


(2) In /var/www/trac/htdocs/site/myproject/myproject.css ...

#content.ticket {

 width: 58em;

 max-width: 100%;

 margin-left: auto;

 margin-right: auto;

}


I copied this stanza from /var/www/trac/htdocs/common/css/ticket.css which I found by looking in my Apache trac_vhost.conf where I saw ...

    Alias /chrome/common /var/www/trac/htdocs/common
    Alias /chrome/site /var/www/trac/htdocs/site/myproject

(3) Adjust 58em; to something wider as desired and refresh your page!

Cheers

Mike













--
You received this message because you are subscribed to the Google
Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


From: [email protected]
Sent: Monday, May 16, 5:40 PM
Subject: [Trac] Expanding the width of the TRAC ticket form
To: Trac Users

Does anyone know the setting which needs to be changed to expand the
width of the actual TRAC ticket form.  I have attached a pic of what I'd
like to expand.  There is so much whitespace around the actual ticket.

See :
https://trac.edgewall.org/wiki/CookBook/SiteStyleCss#Unlimitedticketwidth

--
You received this message because you are subscribed to the Google
Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to