Update of /home/spip-cvs/spip/ecrire
In directory alan:/tmp/cvs-serv32065
Modified Files:
inc_documents.php3
Log Message:
Reintroduction de la largeur max pour les alignements droite-gauche
Index: inc_documents.php3
RCS file: /home/spip-cvs/spip/ecrire/inc_documents.php3,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -d -r1.127 -r1.128
--- inc_documents.php3 17 Sep 2004 22:10:47 -0000 1.127
+++ inc_documents.php3 19 Sep 2004 17:42:14 -0000 1.128
@@ -297,10 +297,14 @@
}
else $type = 'fichier';
+ $largeur_aff = $largeur_vignette;
+ if ($largeur_aff < 120) $largeur_aff = 120;
+
+
if ($align == 'center')
$retour = "<div class='spip_documents' style='margin: auto; text-align: center;'>\n";
else
- $retour = "<div class='spip_documents' style='float: $align; text-align: center;'>\n";
+ $retour = "<div class='spip_documents' style='float: $align; text-align: center; width: ".$largeur_aff."px;'>\n";
//$retour .= "<tr><td align='center' style='text-align: center;'>";
$retour .= $vignette;