]> source.dussan.org Git - gitblit.git/commitdiff
fix: Correct misaligned images in primary repository URL display
authorFlorian Zschocke <f.zschocke+git@gmail.com>
Mon, 5 Dec 2022 16:51:04 +0000 (17:51 +0100)
committerFlorian Zschocke <f.zschocke+git@gmail.com>
Mon, 5 Dec 2022 16:51:04 +0000 (17:51 +0100)
Adding style element `max-width:inherit` as suggested by @piradix, which
makes the access restriction icon be part of the URL box again.
This fixes #1437

src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.html

index e4b7427abc79a60bb687e0fcae7a4238988d6da0..757561322d9b3013d91e3f0af87c68dca6f54326 100644 (file)
@@ -13,7 +13,7 @@
        <wicket:fragment wicket:id="repositoryUrlFragment">\r
                <div class="btn-toolbar" style="margin: 0px;">\r
                        <div class="btn-group repositoryUrlContainer tooltipped tooltipped-w">\r
-                               <img style="vertical-align: middle;padding: 0px 0px 1px 3px;" wicket:id="accessRestrictionIcon"></img>\r
+                               <img style="max-width:inherit; vertical-align: middle;padding: 0px 0px 1px 3px;" wicket:id="accessRestrictionIcon"></img>\r
                                <span wicket:id="menu"></span>\r
                                <div class="repositoryUrl">\r
                                        <span wicket:id="primaryUrl">[repository primary url]</span>\r
@@ -89,7 +89,7 @@
     \r
     <!-- JavaScript automatic copy to clipboard -->\r
     <wicket:fragment wicket:id="clippyPanel">\r
-               <img class="ctcbtn" wicket:id="copyIcon" wicket:message="title:gb.copyToClipboard" />\r
+               <img class="ctcbtn" style="max-width:inherit;" wicket:id="copyIcon" wicket:message="title:gb.copyToClipboard" />\r
        </wicket:fragment>\r
 \r
        <wicket:fragment wicket:id="workingCopyFragment">\r