Commit 1c76a4cadc02a496d08667fe5eee402a36443543
1 parent
aa824458b7
Exists in
master
and in
1 other branch
Шрифты и обрезание длинного текста
Showing 3 changed files with 20 additions and 20 deletions Side-by-side Diff
resources/views/admin/ad_employers/index.blade.php
... | ... | @@ -84,7 +84,7 @@ |
84 | 84 | <th class="px-4 py-3 class5">Избр.</th> |
85 | 85 | <th class="px-4 py-3 class6">Сроч.</th> |
86 | 86 | <th class="px-4 py-3 class7">Статус</th> |
87 | - <th class="px-4 py-3 class8">Дата создан/изменен.</th> | |
87 | + <th class="px-4 py-3 class8">Дата создан/<br>изменен.</th> | |
88 | 88 | <th class="px-4 py-3 class10">Изменить</th> |
89 | 89 | </tr> |
90 | 90 | </thead> |
... | ... | @@ -98,7 +98,7 @@ |
98 | 98 | {{$ad->id}} |
99 | 99 | </td> |
100 | 100 | <td class="px-4 py-3 class2 text-xs"> |
101 | - <div class="flex items-center text-sm"> | |
101 | + <div class="flex items-center text-sm text-xs"> | |
102 | 102 | <div |
103 | 103 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" |
104 | 104 | > |
... | ... | @@ -115,7 +115,7 @@ |
115 | 115 | aria-hidden="true" |
116 | 116 | ></div> |
117 | 117 | </div> |
118 | - <div> | |
118 | + <div class="text-xs"> | |
119 | 119 | <p class="font-semibold">{{$ad->name}}</p> |
120 | 120 | <p class="text-xs text-gray-600 dark:text-gray-400"> |
121 | 121 | {{$ad->employer->name_company}} |
... | ... | @@ -125,15 +125,15 @@ |
125 | 125 | </td> |
126 | 126 | |
127 | 127 | <td class="px-4 py-3 class4 text-xs"> |
128 | - <div class="flex items-center text-sm"> | |
128 | + <div class="flex items-center text-sm text-xs"> | |
129 | 129 | @if ($ad->jobs->count()) |
130 | 130 | <div> |
131 | 131 | <?php $i = 0;?> |
132 | 132 | @foreach ($ad->jobs as $title) |
133 | 133 | <?php if ($i==0) {?> |
134 | - <p class="font-semibold">{{$title->name}}</p> | |
134 | + <p class="font-semibold">{{ mb_strimwidth($title->name, 0, 35, "...") }}</p> | |
135 | 135 | <?php } else {?> |
136 | - <p class="font-semibold">/ {{$title->name}}</p> | |
136 | + <p class="font-semibold">/ {{ mb_strimwidth($title->name, 0, 35, "...") }}</p> | |
137 | 137 | <?php } |
138 | 138 | $i++; |
139 | 139 | ?> |
... | ... | @@ -186,10 +186,10 @@ |
186 | 186 | |
187 | 187 | <td class="px-4 py-3 text-sm class10 text-xs"> |
188 | 188 | <form action="{{ route('admin.delete-ad-employer', ['ad_employer' => $ad->id]) }}" method="POST"> |
189 | - <a href="{{ route('admin.edit-ad-employers', ['ad_employer' => $ad->id]) }}">Изменить</a> | | |
189 | + <a class="text-xs" href="{{ route('admin.edit-ad-employers', ['ad_employer' => $ad->id]) }}">Изменить</a> | | |
190 | 190 | @csrf |
191 | 191 | @method('DELETE') |
192 | - <input class="btn btn-danger" type="submit" value="Удалить"/> | |
192 | + <input class="btn btn-danger text-xs" type="submit" value="Удалить"/> | |
193 | 193 | </form> |
194 | 194 | </td> |
195 | 195 | </tr> |
resources/views/admin/education/index.blade.php
... | ... | @@ -47,20 +47,20 @@ |
47 | 47 | <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800"> |
48 | 48 | @foreach($education as $cat) |
49 | 49 | <tr class="text-gray-700 dark:text-gray-400"> |
50 | - <td class="px-4 py-3"> | |
50 | + <td class="px-4 py-3 text-xs"> | |
51 | 51 | {{$cat->id}} |
52 | 52 | </td> |
53 | - <td class="px-4 py-3"> | |
53 | + <td class="px-4 py-3 text-xs"> | |
54 | 54 | {{ mb_strimwidth($cat->name, 0, 50, "...") }} |
55 | 55 | </td> |
56 | 56 | |
57 | - <td class="px-4 py-3 text-sm_"> | |
57 | + <td class="px-4 py-3 text-sm_ text-xs"> | |
58 | 58 | @if ($cat->id) |
59 | 59 | <a href="{{ route('admin.education.edit', ['education' => $cat->id]) }}">Изменить</a> |
60 | 60 | | <a @click="openModal" style="cursor: pointer;" data-education="{{$cat->id}}" class="btn_del btn btn-danger">Удалить</a> |
61 | 61 | @endif |
62 | 62 | </td> |
63 | - <td class="px-4 py-3"> | |
63 | + <td class="px-4 py-3 text-xs"> | |
64 | 64 | <div class="flex items-center text-sm"> |
65 | 65 | <div> |
66 | 66 | <p class="font-semibold">{{ date('d.m.Y', strtotime($cat->created_at)) }}</p> |
resources/views/admin/job_titles/index.blade.php
... | ... | @@ -52,26 +52,26 @@ |
52 | 52 | <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800"> |
53 | 53 | @foreach($Jobs as $job) |
54 | 54 | <tr class="text-gray-700 dark:text-gray-400"> |
55 | - <td class="px-4 py-3"> | |
55 | + <td class="px-4 py-3 text-xs"> | |
56 | 56 | {{$job->id}} |
57 | 57 | </td> |
58 | - <td class="px-4 py-3"> | |
58 | + <td class="px-4 py-3 text-xs"> | |
59 | 59 | @if (empty($job->parent->id)) |
60 | 60 | Не задан |
61 | 61 | @else |
62 | - {{$job->parent->name}} ({{$job->parent->id}}) | |
62 | + {{ mb_strimwidth($job->parent->name, 0, 35, "...") }}({{$job->parent->id}}) | |
63 | 63 | @endif |
64 | 64 | </td> |
65 | - <td class="px-4 py-3"> | |
66 | - {{$job->name}} | |
65 | + <td class="px-4 py-3 text-xs"> | |
66 | + {{ mb_strimwidth($job->name, 0, 35, "...") }} | |
67 | 67 | </td> |
68 | - <td class="px-4 py-3"> | |
68 | + <td class="px-4 py-3 text-xs"> | |
69 | 69 | {{$job->sort}} |
70 | 70 | </td> |
71 | - <td class="px-4 py-3 text-sm"> | |
71 | + <td class="px-4 py-3 text-sm text-xs"> | |
72 | 72 | {{ $job->created_at }} |
73 | 73 | </td> |
74 | - <td class="px-4 py-3 text-sm_"> | |
74 | + <td class="px-4 py-3 text-sm_ text-xs"> | |
75 | 75 | <form action="{{ route('admin.job-titles.destroy', ['job_title' => $job->id]) }}" method="POST"> |
76 | 76 | <a href="{{ route('admin.job-titles.edit', ['job_title' => $job->id]) }}">Изменить</a> | |
77 | 77 | @csrf |