From 97fc58ca88a71ccea1d123e7d59b83323daa429f Mon Sep 17 00:00:00 2001 From: pronist Date: Tue, 16 Jul 2024 10:04:14 +0900 Subject: [PATCH] Add empty list style --- views/Main/List.pug | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/views/Main/List.pug b/views/Main/List.pug index dad2746..d4eb868 100644 --- a/views/Main/List.pug +++ b/views/Main/List.pug @@ -1,12 +1,15 @@ s_list #list( + x-data='{ listStyle: "[##_list_style_##]" }' x-init='$store.header.title = "[##_list_conform_##]"' - data-list-style='[##_list_style_##]') + :data-list-style='listStyle') s_list_rep +index('list_rep') s_list_empty - #empty(class='rounded-sm text-center p-6 text-h-800 dark:text-h-200 bg-h-200 dark:bg-h-700') - .txt(class='text-lg font-bold') 게시글을 찾을 수 없습니다. + #empty( + x-init='listStyle = "empty"' + class='rounded-sm text-center p-6 text-h-800 dark:text-h-200 bg-h-200 dark:bg-h-700') + .txt(class='font-bold') 게시글을 찾을 수 없습니다. .desc 검색어를 다시 입력하거나 다른 카테고리로 이동해보세요. style @@ -16,6 +19,7 @@ style #tt-body-tag, #tt-body-search { #global-header ~ .post, + [data-list-style=empty], [data-list-style=gallery], [data-list-style=list], [data-list-style=grid],