switch to css class mega-octicon for HiDPI #2275 (#2276)

* switch to css class mega-octicon for HiDPI

* change css repo overview icon
This commit is contained in:
Domi Bigl 2019-01-12 10:24:11 +01:00 committed by Lars Hvam
parent 7628af4a9f
commit cb15695570
2 changed files with 18 additions and 7 deletions

View File

@ -90,7 +90,7 @@ ENDCLASS.
CLASS ZCL_ABAPGIT_HTML IMPLEMENTATION. CLASS zcl_abapgit_html IMPLEMENTATION.
METHOD a. METHOD a.
@ -210,10 +210,12 @@ CLASS ZCL_ABAPGIT_HTML IMPLEMENTATION.
METHOD icon. METHOD icon.
DATA: lv_hint TYPE string, DATA: lv_hint TYPE string,
lv_name TYPE string, lv_name TYPE string,
lv_color TYPE string, lv_color TYPE string,
lv_class TYPE string. lv_class TYPE string,
lv_octicon_class TYPE string,
lv_xpixel TYPE i.
SPLIT iv_name AT '/' INTO lv_name lv_color. SPLIT iv_name AT '/' INTO lv_name lv_color.
@ -227,7 +229,14 @@ CLASS ZCL_ABAPGIT_HTML IMPLEMENTATION.
lv_color = | { lv_color }|. lv_color = | { lv_color }|.
ENDIF. ENDIF.
rv_str = |<i class="octicon octicon-{ lv_name }{ lv_color }{ lv_class }"{ lv_hint }></i>|. lv_xpixel = cl_gui_cfw=>compute_pixel_from_metric( x_or_y = 'X' in = 1 ).
IF lv_xpixel >= 2.
lv_octicon_class = 'mega-octicon'.
ELSE.
lv_octicon_class = 'octicon'.
ENDIF.
rv_str = |<i class="{ lv_octicon_class } octicon-{ lv_name }{ lv_color }{ lv_class }" { lv_hint }></i>|.
ENDMETHOD. ENDMETHOD.

View File

@ -236,8 +236,10 @@ table.repo_tab {
padding-bottom: 2px; padding-bottom: 2px;
} }
.repo_tab td.icon { .repo_tab td.icon {
width: 32px; width: 1px;
text-align: center; text-align: center;
padding-left: 8px;
padding-right: 4px;
} }
.repo_tab td.icon:not(:first-child) { .repo_tab td.icon:not(:first-child) {
width: 26px; width: 26px;