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,29 +302,31 @@ 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 ?>">
<img src="/gameinfo/<?php echo $titleid ?>/icon_128x128.png" loading="lazy" width="124" height="124">
<div class="psm-game-info">
<span><?php echo $title ?></span>
<?php if(getSdkType($xml) == "PSM Unity") { ?>
<img src="/img/unity.png" title="Made With Unity" width="10" height="10">
<?php } if($isPlayable) { ?>
<img src="/img/playable.png" title="zRIF Known" width="10" height="10">
<?php } if($isPlayablePending) { ?>
<img src="/img/pending_playable.png" title="zRIF Maybe Known" width="10" height="10" >
<?php } if($hasSimulator) { ?>
<img src="/img/simulator.png" title="Simulator Files Avalible" width="10" height="10" >
<?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";
?><table>
<div class="psm-game-title">
<span><?php echo $title ?></span>
<?php if(getSdkType($xml) == "PSM Unity") { ?>
<img src="/img/unity.png" title="Made With Unity" width="10" height="10">
<?php } if($isPlayable) { ?>
<img src="/img/playable.png" title="zRIF Known" width="10" height="10">
<?php } if($isPlayablePending) { ?>
<img src="/img/pending_playable.png" title="zRIF Maybe Known" width="10" height="10" >
<?php } if($hasSimulator) { ?>
<img src="/img/simulator.png" title="Simulator Files Avalible" width="10" height="10" >
<?php } ?>
</div>
<table>
<tbody>
<tr>
<td>Genre:</td>

View File

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