Skip to content

Commit c8c3939

Browse files
committed
Style changes when rendering the DN header
1 parent daf240e commit c8c3939

File tree

3 files changed

+17
-23
lines changed

3 files changed

+17
-23
lines changed

public/css/custom.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
img.jpegphoto {
2-
display:block;
3-
max-width:100px;
4-
height:100px;
5-
}
6-
71
/** ensure our userpassword has select is next to the password input */
82
div#userPassword .select2-container--bootstrap-5 .select2-selection {
93
font-size: inherit;

resources/views/components/attribute/binary/jpegphoto.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
@default
1010
<td>
1111
<input type="hidden" name="{{ $o->name_lc }}[]" value="{{ md5($value) }}">
12-
<img @class(['jpegphoto','is-invalid'=>($e=$errors->get($o->name_lc.'.'.$loop->index))]) src="data:{{ $x }};base64, {{ base64_encode($value) }}" />
12+
<img @class(['border','rounded','p-2','m-0','is-invalid'=>($e=$errors->get($o->name_lc.'.'.$loop->index))]) src="data:{{ $x }};base64, {{ base64_encode($value) }}" />
1313

1414
@if ($edit)
1515
<br>
1616
<!-- @todo TO IMPLEMENT -->
17-
<span class="btn btn-sm btn-danger deletable d-none"><i class="fas fa-trash-alt"></i> @lang('Delete')</span>
17+
<span class="btn btn-sm btn-danger deletable d-none mt-3"><i class="fas fa-trash-alt"></i> @lang('Delete')</span>
1818

1919
<div class="invalid-feedback pb-2">
2020
@if($e)

resources/views/fragment/dn/header.blade.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
<table class="table table-borderless">
2-
<tr>
3-
<td class="{{ ($x=$o->getObject('jpegphoto')) ? 'border' : '' }}" rowspan="2">
4-
{!! $x ? $x->render(FALSE,TRUE) : sprintf('<div class="page-title-icon f32"><i class="%s"></i></div>',$o->icon() ?? "fas fa-info") !!}
2+
<tr class="border-bottom line-height-2">
3+
<td class="p-1 pt-0" rowspan="2">
4+
{!! ($x=$o->getObject('jpegphoto')) ? $x->render(FALSE,TRUE) : sprintf('<div class="page-title-icon f32 m-2"><i class="%s"></i></div>',$o->icon() ?? "fas fa-info") !!}
55
</td>
6-
<td class="text-end align-text-top p-0 pt-2 pe-3 {{ $x ? 'ps-5' : '' }}"><strong>{{ $o->getDn() }}</strong></td>
6+
<td class="text-end align-bottom pb-0 mb-0 pt-2 pe-3 {{ $x ? 'ps-3' : '' }}"><strong>{{ $o->getDn() }}</strong></td>
77
</tr>
88
<tr>
9-
<td class="line-height-1" style="font-size: 55%;vertical-align: bottom;" colspan="2">
10-
<table>
11-
<tr>
12-
<td class="p-1 m-1">Created</td>
13-
<th class="p-1 m-1">
9+
<td class="align-bottom" style="font-size: 55%" colspan="2">
10+
<table class="table table-condensed table-borderless w-100">
11+
<tr class="mt-1">
12+
<td class="p-0 pe-2">Created</td>
13+
<th class="p-0">
1414
<x-attribute :o="$o->getObject('createtimestamp')" :na="__('Unknown')"/> [<x-attribute :o="$o->getObject('creatorsname')" :na="__('Unknown')"/>]
1515
</th>
1616
</tr>
17-
<tr>
18-
<td class="p-1 m-1">Modified</td>
19-
<th class="p-1 m-1">
17+
<tr class="mt-1">
18+
<td class="p-0 pe-2">Modified</td>
19+
<th class="p-0">
2020
<x-attribute :o="$o->getObject('modifytimestamp')" :na="__('Unknown')"/> [<x-attribute :o="$o->getObject('modifiersname')" :na="__('Unknown')"/>]
2121
</th>
2222
</tr>
23-
<tr>
24-
<td class="p-1 m-1">UUID</td>
25-
<th class="p-1 m-1">
23+
<tr class="mt-1">
24+
<td class="p-0 pe-2">UUID</td>
25+
<th class="p-0">
2626
<x-attribute :o="$o->getObject('entryuuid')" :na="__('Unknown')"/>
2727
</th>
2828
</tr>

0 commit comments

Comments
 (0)