Skip to content

Commit

Permalink
chor: view tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
mhzawadi committed Jan 8, 2023
1 parent e5e7b2d commit 42d7a51
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/classes/application_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function build_app_table($applications){
if($app['url'] == $app['description']){
$app['description'] = '';
}
$app_list .= '<tr data-rbd-draggable-context-id="1" data-rbd-draggable-id="46" tabindex="0" role="button" aria-describedby="rbd-hidden-text-1-hidden-text-22" data-rbd-drag-handle-draggable-id="46" data-rbd-drag-handle-context-id="1" draggable="false" style="border: none; border-radius: 4px;">'."\n";
$app_list .= '<tr data-rbd-draggable-context-id="1" data-rbd-draggable-id="46" tabindex="0" role="button" aria-describedby="rbd-hidden-text-1-hidden-text-22" data-rbd-drag-handle-draggable-id="46" data-rbd-drag-handle-context-id="1" draggable="false">'."\n";
$app_list .= ' <td style="width: 200px;">'.$app['name'].'</td>'."\n";
$app_list .= ' <td style="width: 200px;">'.$app['url'].'</td>'."\n";
$app_list .= ' <td style="width: 200px;">'.$app['icon'].'</td>'."\n";
Expand Down
2 changes: 1 addition & 1 deletion src/classes/bookmark_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function build_bookmark_table($category){
$bookmark_list .= ' </thead>'."\n";
$bookmark_list .= ' <tbody>'."\n";
foreach($bookmarks as $key => $bookmark){
$bookmark_list .= ' <tr data-rbd-draggable-context-id="1" data-rbd-draggable-id="46" tabindex="0" role="button" aria-describedby="rbd-hidden-text-1-hidden-text-22" data-rbd-drag-handle-draggable-id="46" data-rbd-drag-handle-context-id="1" draggable="false" style="border: none; border-radius: 4px;">'."\n";
$bookmark_list .= ' <tr data-rbd-draggable-context-id="1" data-rbd-draggable-id="46" tabindex="0" role="button" aria-describedby="rbd-hidden-text-1-hidden-text-22" data-rbd-drag-handle-draggable-id="46" data-rbd-drag-handle-context-id="1" draggable="false">'."\n";
$bookmark_list .= ' <td style="width: 200px;">'.$bookmark['name'].'</td>'."\n";
$bookmark_list .= ' <td style="width: 400px;">'.$bookmark['url'].'</td>'."\n";
$bookmark_list .= ' <td style="width: 200px;">'.$bookmark['icon'].'</td>'."\n";
Expand Down
2 changes: 1 addition & 1 deletion src/classes/category_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function build_category_table($categories){
$category_list .= ' </thead>'."\n";
$category_list .= ' <tbody>'."\n";
foreach($categories as $key => $category){
$category_list .= ' <tr data-rbd-draggable-context-id="1" data-rbd-draggable-id="46" tabindex="0" role="button" aria-describedby="rbd-hidden-text-1-hidden-text-22" data-rbd-drag-handle-draggable-id="46" data-rbd-drag-handle-context-id="1" draggable="false" style="border: none; border-radius: 4px;">'."\n";
$category_list .= ' <tr data-rbd-draggable-context-id="1" data-rbd-draggable-id="46" tabindex="0" role="button" aria-describedby="rbd-hidden-text-1-hidden-text-22" data-rbd-drag-handle-draggable-id="46" data-rbd-drag-handle-context-id="1" draggable="false">'."\n";
$category_list .= ' <td style="width: 200px;">'.$category['name'].'</td>'."\n";
$category_list .= ' <td style="width: 200px;">'.$category['isPublic'].'</td>'."\n";
$category_list .= ' <td class="TableActions_TableActions__2_v2I">'."\n";
Expand Down
5 changes: 5 additions & 0 deletions src/public/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ a {
table-layout: fixed
}

.Table_Table__pinST tr {
border-bottom: var(--color-primary) 1px solid;
border-radius: 4px;
}

.Table_Table__pinST td,.Table_Table__pinST th {
padding: 10px;
overflow: hidden;
Expand Down

0 comments on commit 42d7a51

Please sign in to comment.