How do I adjust the width of the tables on the first administration page (http://www.mywebsite.com/admin), with 'the most recent system events'.

'Date' is too narrow, 'Message' is too wide. The entire table is too wide.

Is there a way to set the widths in that table in percentages?

Comments

Scott’s picture

Here's a quick-n-dirty semi-solution:

Put the following in your theme's style.css:

tr.watchdog-notice td, tr.watchdog-warning td, tr.watchdog-error td {font: 11px Arial, Helvetica, Geneva}

You can replace the fonts I listed with any compact, narrow-ish, sans-serif font. 11px Arial is tolerable on Windows.

The real problem I'm seeing is that the Message column often includes long URLs that won't wrap, so they widen the column and mess up fixed-width layouts.

The watchdog module fails to put class attributes in the table cells, so you can't modify one column without effecting them all. (Well... I can't...)

The watchdog module truncates messages longer than 64 chars, but I think a better solution would be for the module to insert spaces after the slashes in long URLs in the Message column. That seems to work for Google.

dman’s picture

The watchdog module truncates messages longer than 64 chars, but I think a better solution would be for the module to insert spaces after the slashes in long URLs in the Message column. That seems to work for Google.

Heh, that's an old killer of what was supposed to be a lovely liquid layout. Long Urls ...
The best thing to use would theoretically be the long-forgotten <WBR> tag. ... I wonder if it made it into CSS...

... on research it seems not - there is no spec for it at all! ...

Anyone ever used &shy; "soft hyphen" ?

http://supercalifragalisticexpialidotious/­antidisestablishmentarianism...ältigung/­pneumonoultramicroscopicsilicovolcanoconiosis

... yep, that seems to do the job!

.dan.

SorcererXIII’s picture

I just ran into this same problem myself. Searching the forums this was the best solution I found. For future versions of Drupal, it would be better if all the Drupal-generated tables and divs would get a class or an id so that we can refer to it in the .css.