Improved long name rendering in edit logs
This commit is contained in:
parent
b3473be89a
commit
d740cd0ddc
@ -59,26 +59,26 @@ component EditLogScrollable(entries []*arn.EditLogEntry, user *arn.User)
|
|||||||
if arn.GetObjectTitle(entry.ObjectType, entry.ObjectID) == ""
|
if arn.GetObjectTitle(entry.ObjectType, entry.ObjectID) == ""
|
||||||
.edit-log-empty empty
|
.edit-log-empty empty
|
||||||
else if strings.HasPrefix(arn.GetObjectTitle(entry.ObjectType, entry.ObjectID), "<not found:")
|
else if strings.HasPrefix(arn.GetObjectTitle(entry.ObjectType, entry.ObjectID), "<not found:")
|
||||||
span= arn.GetObjectTitle(entry.ObjectType, entry.ObjectID)
|
span.clip-long-text= arn.GetObjectTitle(entry.ObjectType, entry.ObjectID)
|
||||||
else
|
else
|
||||||
a(href=arn.GetObjectLink(entry.ObjectType, entry.ObjectID), target="_blank")= arn.GetObjectTitle(entry.ObjectType, entry.ObjectID)
|
a.clip-long-text(href=arn.GetObjectLink(entry.ObjectType, entry.ObjectID), target="_blank")= arn.GetObjectTitle(entry.ObjectType, entry.ObjectID)
|
||||||
|
|
||||||
.edit-log-key
|
.edit-log-key
|
||||||
span= entry.ObjectType
|
span= entry.ObjectType
|
||||||
|
|
||||||
if entry.Key != ""
|
if entry.Key != ""
|
||||||
span= "." + entry.Key
|
span.clip-long-text= "." + entry.Key
|
||||||
|
|
||||||
.edit-log-value(title=entry.OldValue)
|
.edit-log-value(title=entry.OldValue)
|
||||||
if entry.OldValue == ""
|
if entry.OldValue == ""
|
||||||
.edit-log-empty empty
|
.edit-log-empty empty
|
||||||
else
|
else
|
||||||
span= entry.OldValue
|
span.clip-long-text= entry.OldValue
|
||||||
|
|
||||||
.edit-log-value(title=entry.NewValue)
|
.edit-log-value(title=entry.NewValue)
|
||||||
if entry.NewValue == ""
|
if entry.NewValue == ""
|
||||||
.edit-log-empty empty
|
.edit-log-empty empty
|
||||||
else
|
else
|
||||||
span= entry.NewValue
|
span.clip-long-text= entry.NewValue
|
||||||
|
|
||||||
.edit-log-date.utc-date(data-date=entry.Created)
|
.edit-log-date.utc-date(data-date=entry.Created)
|
@ -39,6 +39,9 @@
|
|||||||
display flex
|
display flex
|
||||||
align-items center
|
align-items center
|
||||||
flex 1 1 150px
|
flex 1 1 150px
|
||||||
|
overflow hidden
|
||||||
|
|
||||||
|
.clip-long-text
|
||||||
clip-long-text
|
clip-long-text
|
||||||
|
|
||||||
.edit-log-icon
|
.edit-log-icon
|
||||||
|
Loading…
Reference in New Issue
Block a user