move playable icon next to title

This commit is contained in:
olebeck 2022-09-21 16:25:55 +02:00
parent 8664dc380a
commit 207a52987a
2 changed files with 31 additions and 19 deletions

View File

@ -302,10 +302,19 @@ include("header.php");
} }
} }
} }
$authorUrl = "libary.php?search=".urlencode($author)."&searchby=dev";
if($playableSearch === true || $searchUsed === false)
$authorUrl .= "&playable=on";
if($simulatorSearch === true || $searchUsed === false)
$authorUrl .= "&simulator=on";
if($unplayableSearch === true || $searchUsed === false)
$authorUrl .= "&unplayable=on";
?> ?>
<a class="psm-game" href="?game=<?php echo $titleid ?>"> <a class="psm-game" href="?game=<?php echo $titleid ?>">
<img src="/gameinfo/<?php echo $titleid ?>/icon_128x128.png" loading="lazy" width="124" height="124"> <img src="/gameinfo/<?php echo $titleid ?>/icon_128x128.png" loading="lazy" width="124" height="124">
<div class="psm-game-info"> <div class="psm-game-info">
<div class="psm-game-title">
<span><?php echo $title ?></span> <span><?php echo $title ?></span>
<?php if(getSdkType($xml) == "PSM Unity") { ?> <?php if(getSdkType($xml) == "PSM Unity") { ?>
<img src="/img/unity.png" title="Made With Unity" width="10" height="10"> <img src="/img/unity.png" title="Made With Unity" width="10" height="10">
@ -315,16 +324,9 @@ include("header.php");
<img src="/img/pending_playable.png" title="zRIF Maybe Known" width="10" height="10" > <img src="/img/pending_playable.png" title="zRIF Maybe Known" width="10" height="10" >
<?php } if($hasSimulator) { ?> <?php } if($hasSimulator) { ?>
<img src="/img/simulator.png" title="Simulator Files Avalible" width="10" height="10" > <img src="/img/simulator.png" title="Simulator Files Avalible" width="10" height="10" >
<?php } <?php } ?>
</div>
$authorUrl = "libary.php?search=".urlencode($author)."&searchby=dev"; <table>
if($playableSearch === true || $searchUsed === false)
$authorUrl .= "&playable=on";
if($simulatorSearch === true || $searchUsed === false)
$authorUrl .= "&simulator=on";
if($unplayableSearch === true || $searchUsed === false)
$authorUrl .= "&unplayable=on";
?><table>
<tbody> <tbody>
<tr> <tr>
<td>Genre:</td> <td>Genre:</td>

View File

@ -214,6 +214,16 @@
display: block; display: block;
} }
.psm-game-title {
display: flex;
flex-direction: row;
align-items: center;
}
.psm-game-title > span {
margin-right: 3px;
}
.psm-meta { .psm-meta {
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
} }