mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-05 23:34:19 -04:00
parent
31f934c1d8
commit
904b324716
@ -95,7 +95,9 @@ func parseOCIImageConfig(r io.Reader) (*Metadata, error) {
|
||||
if i := strings.Index(cmd, "#(nop) "); i != -1 {
|
||||
cmd = strings.TrimSpace(cmd[i+7:])
|
||||
}
|
||||
imageLayers = append(imageLayers, cmd)
|
||||
if cmd != "" {
|
||||
imageLayers = append(imageLayers, cmd)
|
||||
}
|
||||
}
|
||||
|
||||
metadata := &Metadata{
|
||||
|
@ -47,7 +47,7 @@
|
||||
{{if .PackageDescriptor.Metadata.ImageLayers}}
|
||||
<h4 class="ui top attached header">{{.locale.Tr "packages.container.layers"}}</h4>
|
||||
<div class="ui attached segment">
|
||||
<table id="notice-table" class="ui very basic compact table">
|
||||
<table class="ui very basic compact table">
|
||||
<tbody>
|
||||
{{range .PackageDescriptor.Metadata.ImageLayers}}
|
||||
<tr>
|
||||
@ -61,7 +61,7 @@
|
||||
{{if .PackageDescriptor.Metadata.Labels}}
|
||||
<h4 class="ui top attached header">{{.locale.Tr "packages.container.labels"}}</h4>
|
||||
<div class="ui attached segment">
|
||||
<table id="notice-table" class="ui very basic compact table">
|
||||
<table class="ui very basic compact table container-labels">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{.locale.Tr "packages.container.labels.key"}}</th>
|
||||
|
9
web_src/less/_package.less
Normal file
9
web_src/less/_package.less
Normal file
@ -0,0 +1,9 @@
|
||||
.container-labels {
|
||||
td:nth-child(1) {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
td:nth-child(2) {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
}
|
@ -35,5 +35,6 @@
|
||||
@import "_admin";
|
||||
@import "_explore";
|
||||
@import "_review";
|
||||
@import "_package";
|
||||
|
||||
@import "./helpers.less";
|
||||
|
Loading…
Reference in New Issue
Block a user