fix link on preview not working but now we cant clcik the image, css is a nightmare
This commit is contained in:
parent
99423b9847
commit
bf155beffc
2 changed files with 13 additions and 27 deletions
|
|
@ -111,9 +111,6 @@ blockquote.blockquote {
|
||||||
}
|
}
|
||||||
|
|
||||||
a.preview-link {
|
a.preview-link {
|
||||||
display: block;
|
|
||||||
height: 100;
|
|
||||||
width: 100;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: unset;
|
color: unset;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -111,38 +111,27 @@ let pp_post fmt t =
|
||||||
~some:(fun thread_data -> thread_data.subject)
|
~some:(fun thread_data -> thread_data.subject)
|
||||||
thread_data_opt
|
thread_data_opt
|
||||||
in
|
in
|
||||||
(* put inside a link if its a preview *)
|
(* put a link in if its a preview *)
|
||||||
let pp_inner_post fmt () =
|
let link fmt () =
|
||||||
|
if Option.is_some thread_data_opt then
|
||||||
|
Format.fprintf fmt
|
||||||
|
{|<a class="stretched-link preview-link" href="/thread/%s"></a>|} id
|
||||||
|
else Format.fprintf fmt ""
|
||||||
|
in
|
||||||
Format.fprintf fmt
|
Format.fprintf fmt
|
||||||
{|
|
{|
|
||||||
|
<div class="position-relative post" id="%s">
|
||||||
<div class="thread-subject">
|
<div class="thread-subject">
|
||||||
%s
|
%s
|
||||||
</div>
|
</div>
|
||||||
%a
|
%a
|
||||||
%a
|
%a
|
||||||
|
%a
|
||||||
<blockquote class="post-comment">%s</blockquote>
|
<blockquote class="post-comment">%s</blockquote>
|
||||||
%a
|
%a
|
||||||
|}
|
|
||||||
subject post_info_view () image_view () comment tags_view ()
|
|
||||||
in
|
|
||||||
if Option.is_some thread_data_opt then
|
|
||||||
Format.fprintf fmt
|
|
||||||
{|
|
|
||||||
<div class="post" id="%s">
|
|
||||||
<a class="preview-link" href="/thread/%s">
|
|
||||||
%a
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
|}
|
|}
|
||||||
id id pp_inner_post ()
|
id subject link () post_info_view () image_view () comment tags_view ()
|
||||||
else
|
|
||||||
Format.fprintf fmt
|
|
||||||
{|
|
|
||||||
<div class="post" id="%s">
|
|
||||||
%a
|
|
||||||
</div>
|
|
||||||
|}
|
|
||||||
id pp_inner_post ()
|
|
||||||
|
|
||||||
let view_post id =
|
let view_post id =
|
||||||
let* post = get_post id in
|
let* post = get_post id in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue