1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

fix(ui): consistent widget padding [r8s-136] (#82)

This commit is contained in:
Ali 2024-11-05 14:25:40 +13:00 committed by GitHub
parent 3c0d25f3bd
commit 458d722d47
16 changed files with 72 additions and 54 deletions

View file

@ -24,19 +24,19 @@
<table class="table">
<tbody class="release-table">
<tr>
<td class="vertical-center !pl-0">Name</td>
<td class="vertical-center">Name</td>
<td class="vertical-center !p-2" data-cy="k8sAppDetail-appName">
{{ $ctrl.state.release.name }}
</td>
</tr>
<tr>
<td class="vertical-center !pl-0">Chart</td>
<td class="vertical-center">Chart</td>
<td class="vertical-center !p-2">
{{ $ctrl.state.release.chart }}
</td>
</tr>
<tr>
<td class="vertical-center !pl-0">App version</td>
<td class="vertical-center">App version</td>
<td class="vertical-center !p-2">
{{ $ctrl.state.release.app_version }}
</td>

View file

@ -11,7 +11,7 @@
<uib-tab index="0" classes="btn-sm" select="ctrl.selectTab(0)">
<uib-tab-heading class="flex-center gap-1"> <pr-icon icon="'hard-drive'" size="'sm'"></pr-icon> Node </uib-tab-heading>
<form class="form-horizontal" name="kubernetesNodeUpdateForm" style="padding: 20px" autocomplete="off">
<form class="form-horizontal widget-body" name="kubernetesNodeUpdateForm" autocomplete="off">
<table class="table">
<tbody ng-if="ctrl.node">
<tr>
@ -73,7 +73,7 @@
</tbody>
</table>
<div style="padding: 8px">
<div class="mt-5">
<kubernetes-resource-reservation
ng-if="ctrl.resourceReservation"
cpu-reservation="ctrl.resourceReservation.CpuRequest"
@ -88,7 +88,7 @@
</kubernetes-resource-reservation>
</div>
<div style="padding: 8px">
<div>
<!-- #region labels -->
<div class="col-sm-12 form-section-title"> Labels </div>

View file

@ -28,15 +28,15 @@
<pr-icon icon="'file-code'"></pr-icon>
ConfigMap
</uib-tab-heading>
<div style="padding: 20px">
<div class="widget-body">
<table class="table" data-cy="k8sConfigDetail-configTable">
<tbody>
<tr>
<td class="w-[40%] !border-none !pl-0">Name</td>
<td class="w-[40%] !border-none">Name</td>
<td class="!border-none"> {{ ctrl.configuration.Name }} </td>
</tr>
<tr>
<td class="!pl-0">Namespace</td>
<td>Namespace</td>
<td>
<a ui-sref="kubernetes.resourcePools.resourcePool({ id: ctrl.configuration.Namespace })">{{ ctrl.configuration.Namespace }}</a>
<span style="margin-left: 5px" class="label label-info image-tag" ng-if="ctrl.isSystemNamespace()">system</span>

View file

@ -28,25 +28,25 @@
<pr-icon icon="'lock'"></pr-icon>
Secret
</uib-tab-heading>
<div style="padding: 20px">
<div class="widget-body">
<table class="table" data-cy="k8sConfigDetail-configTable">
<tbody>
<tr>
<td class="w-[40%] !border-none !pl-0">Name</td>
<td class="w-[40%] !border-none">Name</td>
<td class="!border-none">
{{ ctrl.configuration.Name }}
<span style="margin-left: 5px" class="label label-info image-tag" ng-if="ctrl.configuration.IsRegistrySecret">system</span>
</td>
</tr>
<tr>
<td class="!pl-0">Namespace</td>
<td>Namespace</td>
<td>
<a ui-sref="kubernetes.resourcePools.resourcePool({ id: ctrl.configuration.Namespace })">{{ ctrl.configuration.Namespace }}</a>
<span style="margin-left: 5px" class="label label-info image-tag" ng-if="ctrl.isSystemNamespace()">system</span>
</td>
</tr>
<tr ng-if="ctrl.secretTypeName">
<td class="!pl-0">Secret Type</td>
<td>Secret Type</td>
<td> {{ ctrl.secretTypeName }} </td>
</tr>
</tbody>

View file

@ -25,7 +25,7 @@
<table class="table">
<tbody>
<tr>
<td class="!pl-0">Name</td>
<td>Name</td>
<td>
{{ ctrl.pool.Namespace.Name }}
</td>

View file

@ -15,23 +15,18 @@
<uib-tabset active="ctrl.state.activeTab" justified="true" type="pills">
<uib-tab index="0" classes="btn-sm" select="ctrl.selectTab(0)">
<uib-tab-heading class="vertical-center"> <pr-icon icon="'layers'"></pr-icon> Namespace </uib-tab-heading>
<form class="form-horizontal" autocomplete="off" name="resourcePoolEditForm" style="padding: 20px; margin-top: 10px">
<!-- name-input -->
<div class="form-group">
<div class="col-sm-12">
<table class="table">
<tbody>
<tr>
<td>Name</td>
<td>
{{ ctrl.pool.Namespace.Name }}
<span class="label label-info image-tag label-margins" ng-if="ctrl.isSystem">system</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<form class="form-horizontal widget-body" autocomplete="off" name="resourcePoolEditForm" style="margin-top: 10px">
<table class="table">
<tbody>
<tr>
<td class="w-[40%]">Name</td>
<td>
{{ ctrl.pool.Namespace.Name }}
<span class="label label-info image-tag label-margins" ng-if="ctrl.isSystem">system</span>
</td>
</tr>
</tbody>
</table>
<div class="col-sm-12 !p-0">
<annotations-be-teaser></annotations-be-teaser>

View file

@ -28,7 +28,7 @@
<pr-icon icon="'database'"></pr-icon>
Volume
</uib-tab-heading>
<div style="padding: 20px">
<div class="widget-body">
<table class="table">
<tbody>
<tr>