mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
minor css adjustments (#5372)
Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
This commit is contained in:
parent
68e2cfa5c2
commit
adb529152b
|
@ -278,7 +278,7 @@ table.repo_tab {
|
||||||
border: 1px solid;
|
border: 1px solid;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
line-height: 1.5;
|
line-height: 1.2;
|
||||||
}
|
}
|
||||||
.repo_tab th {
|
.repo_tab th {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
@ -287,7 +287,6 @@ table.repo_tab {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
.repo_tab td {
|
.repo_tab td {
|
||||||
border-top: 1px solid;
|
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
padding-top: 2px;
|
padding-top: 2px;
|
||||||
padding-bottom: 2px;
|
padding-bottom: 2px;
|
||||||
|
@ -322,6 +321,10 @@ table.repo_tab {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.repo_tab tr.object_row{
|
||||||
|
border-top: 1px solid;
|
||||||
|
}
|
||||||
|
|
||||||
.repo_tab td.cmd, .repo_tab th.cmd {
|
.repo_tab td.cmd, .repo_tab th.cmd {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
padding-left: 0.5em;
|
padding-left: 0.5em;
|
||||||
|
|
|
@ -146,6 +146,9 @@ table.repo_tab {
|
||||||
}
|
}
|
||||||
.repo_tab td {
|
.repo_tab td {
|
||||||
color: #333;
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.repo_tab tr.object_row{
|
||||||
border-top-color: var(--theme-table-border-color);
|
border-top-color: var(--theme-table-border-color);
|
||||||
}
|
}
|
||||||
.repo_tab .inactive { color: orange; }
|
.repo_tab .inactive { color: orange; }
|
||||||
|
|
|
@ -86,6 +86,7 @@ CLASS zcl_abapgit_gui_page_repo_view DEFINITION
|
||||||
METHODS get_item_class
|
METHODS get_item_class
|
||||||
IMPORTING
|
IMPORTING
|
||||||
!is_item TYPE zif_abapgit_definitions=>ty_repo_item
|
!is_item TYPE zif_abapgit_definitions=>ty_repo_item
|
||||||
|
iv_is_object_row TYPE abap_bool DEFAULT abap_false
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(rv_html) TYPE string .
|
VALUE(rv_html) TYPE string .
|
||||||
METHODS get_item_icon
|
METHODS get_item_icon
|
||||||
|
@ -188,7 +189,7 @@ ENDCLASS.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CLASS ZCL_ABAPGIT_GUI_PAGE_REPO_VIEW IMPLEMENTATION.
|
CLASS zcl_abapgit_gui_page_repo_view IMPLEMENTATION.
|
||||||
|
|
||||||
|
|
||||||
METHOD apply_order_by.
|
METHOD apply_order_by.
|
||||||
|
@ -658,6 +659,12 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_REPO_VIEW IMPLEMENTATION.
|
||||||
|
|
||||||
DATA lt_class TYPE TABLE OF string.
|
DATA lt_class TYPE TABLE OF string.
|
||||||
|
|
||||||
|
IF iv_is_object_row = abap_true.
|
||||||
|
APPEND 'object_row' TO lt_class.
|
||||||
|
ELSE.
|
||||||
|
APPEND 'file_row' TO lt_class.
|
||||||
|
ENDIF.
|
||||||
|
|
||||||
IF is_item-is_dir = abap_true.
|
IF is_item-is_dir = abap_true.
|
||||||
APPEND 'folder' TO lt_class.
|
APPEND 'folder' TO lt_class.
|
||||||
ELSEIF is_item-changes > 0.
|
ELSEIF is_item-changes > 0.
|
||||||
|
@ -975,7 +982,8 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_REPO_VIEW IMPLEMENTATION.
|
||||||
|
|
||||||
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
|
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
|
||||||
|
|
||||||
ri_html->add( |<tr{ get_item_class( is_item ) }>| ).
|
ri_html->add( |<tr{ get_item_class( is_item = is_item
|
||||||
|
iv_is_object_row = abap_true ) }>| ).
|
||||||
|
|
||||||
IF is_item-obj_name IS INITIAL AND is_item-is_dir = abap_false.
|
IF is_item-obj_name IS INITIAL AND is_item-is_dir = abap_false.
|
||||||
ri_html->add( |<td colspan="2"></td>|
|
ri_html->add( |<td colspan="2"></td>|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user