fix: 의견 전체보기 첨부 이미지 확대(클릭 없이 바로 보이게)
220x170 축소 썸네일 → 최대 640px 폭으로 확대, 여러 장일 때도 가로로 좁아지지 않게 세로로 나열. 원본 크기가 필요하면 계속 클릭해서 새 창으로 열 수 있다.
This commit is contained in:
@@ -73,11 +73,11 @@ $badge = static function (string $s): string {
|
||||
<p class="whitespace-pre-wrap text-sm text-gray-800"><?= esc((string) $row->fb_content) ?></p>
|
||||
|
||||
<?php if (! empty($files)): ?>
|
||||
<div class="flex flex-wrap gap-2 mt-3">
|
||||
<div class="flex flex-col gap-3 mt-3">
|
||||
<?php foreach ($files as $f): ?>
|
||||
<a href="<?= site_url('admin/feedback/file/' . (int) $f->ff_idx) ?>" target="_blank" rel="noopener">
|
||||
<a href="<?= site_url('admin/feedback/file/' . (int) $f->ff_idx) ?>" target="_blank" rel="noopener" title="새 창에서 원본 크기로 보기">
|
||||
<img src="<?= site_url('admin/feedback/file/' . (int) $f->ff_idx) ?>" alt="첨부 이미지"
|
||||
style="max-width:220px;max-height:170px;border:1px solid #e5e7eb;border-radius:6px;"/>
|
||||
style="max-width:100%;width:640px;height:auto;border:1px solid #e5e7eb;border-radius:6px;"/>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user