1
0
Fork 0

Compare commits

...

2 commits

Author SHA1 Message Date
thibaud-leclere
c1d3345a01 fix: force-update tags on git fetch to handle rewritten remote tags 2026-05-11 11:29:05 +02:00
thibaud-leclere
c1d3ea0a30 fix: add padding to admin mapping forms 2026-05-11 11:25:06 +02:00
3 changed files with 20 additions and 1 deletions

View file

@ -141,6 +141,10 @@ a {
box-shadow: 0 16px 40px rgba(23, 32, 51, 0.06);
}
.admin-card {
padding: 24px;
}
.admin-table {
width: 100%;
border-collapse: collapse;

View file

@ -50,7 +50,7 @@ final class GitSynchronizer
$this->runGit(['git', '-C', $repositoryDir, 'remote', 'set-url', 'origin', $mapping->getRepositoryUrl()], null, $env);
}
$this->runGit(['git', '-C', $repositoryDir, 'fetch', '--prune', '--tags', 'origin', $mapping->getGitRef()], null, $env);
$this->runGit(['git', '-C', $repositoryDir, 'fetch', '--prune', '--tags', '--force', 'origin', $mapping->getGitRef()], null, $env);
$this->runGit(['git', '-C', $repositoryDir, 'checkout', '--force', 'FETCH_HEAD'], null, $env);
return $repositoryDir;

15
tests/AdminCssTest.php Normal file
View file

@ -0,0 +1,15 @@
<?php
namespace App\Tests;
use PHPUnit\Framework\TestCase;
final class AdminCssTest extends TestCase
{
public function testAdminCardDefinesInnerPadding(): void
{
$css = (string) file_get_contents(dirname(__DIR__).'/public/admin.css');
self::assertMatchesRegularExpression('/\.admin-card\s*\{[^}]*\bpadding:\s*24px;/s', $css);
}
}