Skip to content

Commit 51a0d90

Browse files
committed
allow book cover to float correctly in rtl / ltr languages
moved inline styles to styles.css added class edspubicon for the main style, and allow rtl to be a modifier that then ensures the correct float
1 parent 06666c3 commit 51a0d90

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

Koha/Plugin/EDS/bootstrap/modules/eds-results.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260
[% END %]
261261
</div>
262262
[% #IMAGE START %]
263-
<div style="float:right;background-color:#FFF;font-size:x-small;border:1px solid #CCC;width:auto;margin-right:5px;margin-bottom:5px;padding:2px;">
263+
<div class="edspubicon [% bidi %]">
264264
[% IF ( RECORD.ImageInfo.0.Target ) # RECORD.imageurl%]
265265
<div align="center">
266266
<img src="[% RECORD.ImageInfo.0.Target %]" title="[% RECORD.description %]" alt="[% RECORD.description %]" />

Koha/Plugin/EDS/css/style.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,3 +295,20 @@ searchlink {
295295
bottom:inherit!important;
296296
margin-top:5px;
297297
}
298+
299+
.edspubicon {
300+
background-color:#FFF;
301+
font-size:x-small;
302+
border:1px solid #CCC;
303+
width:auto;
304+
margin-right:5px;
305+
margin-bottom:5px;
306+
padding:2px;
307+
float:left;
308+
}
309+
310+
.edspubicon.rtl{
311+
float: right;
312+
margin-right: 0px;
313+
margin-left: 10px;
314+
}

0 commit comments

Comments
 (0)