diff --git a/app/helpers.php b/app/helpers.php index a54eb36..78e4e0a 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -41,6 +41,14 @@ function checkLegit ($t) { return $check->id; } +function ptFullHandle ($v) { + return $v->name.($v->host != env('PEER_URI') ? '@'.$v->host : ''); +} + +function ptAvatar ($avatar) { + return isset($avatar) && !is_null($avatar) ? env('PEER_URI').$avatar->path : '/img/noicon.jpg'; +} + function userDetail ($id, $kero=null) { if ($kero || $id) { $log_username = null; diff --git a/public/css/peertube/myaccount.css b/public/css/peertube/myaccount.css index 3a7b4ae..887dbe9 100644 --- a/public/css/peertube/myaccount.css +++ b/public/css/peertube/myaccount.css @@ -200,6 +200,17 @@ color: var(--whiteColor); } +svg { + overflow: hidden; + vertical-align: middle; +} + +.notification my-global-icon { + margin-inline-start: 3px; + margin-inline-end: 11px; + width: 24px; +} + .header-filter a my-global-icon .feather, .header-filter a my-global-icon .material, .header-filter a my-global-icon .misc { color: var(--greyForegroundColor); } @@ -457,11 +468,6 @@ my-user-notifications { background-color: var(--menuAndHeaderBackgroundColor); } -#custom-css .notification { - background-color: var(--mainBackgroundColor); - color: var(--mainForegroundColor); -} - .notification.unread { background-color: #0000000d; } @@ -503,18 +509,4 @@ img { color: var(--greyForegroundColor); min-width: 70px; text-align: end; -} - -#custom-css .notification { - background-color: var(--mainBackgroundColor); - color: var(--mainForegroundColor); -} - -.notification { - display: flex; - align-items: center; - font-size: inherit; - padding: 15px 5px 15px 10px; - border-bottom: 1px solid rgba(0,0,0,.1); - word-break: break-word; } \ No newline at end of file diff --git a/resources/views/theme/techsuwa/component/peertube/a/channels/avatar.blade.php b/resources/views/theme/techsuwa/component/peertube/a/channels/avatar.blade.php index c9a41bd..8ec0488 100644 --- a/resources/views/theme/techsuwa/component/peertube/a/channels/avatar.blade.php +++ b/resources/views/theme/techsuwa/component/peertube/a/channels/avatar.blade.php @@ -1,7 +1,7 @@
- チャンネルのアバター + チャンネルのアバター

diff --git a/resources/views/theme/techsuwa/component/peertube/a/info.blade.php b/resources/views/theme/techsuwa/component/peertube/a/info.blade.php index 44da229..f943b57 100644 --- a/resources/views/theme/techsuwa/component/peertube/a/info.blade.php +++ b/resources/views/theme/techsuwa/component/peertube/a/info.blade.php @@ -1,7 +1,7 @@