diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-07-28 13:03:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-28 13:03:18 +0300 |
commit | 70335c2290bad8196a94232e3c02e81422d8672e (patch) | |
tree | 091cc8e39f69331fa0bd26a371166efa9898f70f /src | |
parent | 3a2c4867be49f0d60decd2e9c65bcec05d36f87a (diff) | |
parent | 7670b5ffee81a78290a4599e0b3f80cb1f3e809a (diff) |
Merge pull request #7602 from nextcloud/bugfix/7566/div-not-allowed-inside-ul
Fix HTML validation DIV not allowed inside UL
Diffstat (limited to 'src')
-rw-r--r-- | src/components/LeftSidebar/LeftSidebar.vue | 117 |
1 files changed, 61 insertions, 56 deletions
diff --git a/src/components/LeftSidebar/LeftSidebar.vue b/src/components/LeftSidebar/LeftSidebar.vue index ccc4e0da9..bc6110a45 100644 --- a/src/components/LeftSidebar/LeftSidebar.vue +++ b/src/components/LeftSidebar/LeftSidebar.vue @@ -33,65 +33,67 @@ <NewGroupConversation v-if="canStartConversations" /> </div> <template #list> - <div ref="scroller" - class="left-sidebar__list" - @scroll="debounceHandleScroll"> - <AppNavigationCaption v-if="isSearching" - :title="t('spreed', 'Conversations')" /> - <li role="presentation"> - <ConversationsList ref="conversationsList" - :conversations-list="conversationsList" - :initialised-conversations="initialisedConversations" - :search-text="searchText" - @click-search-result="handleClickSearchResult" - @focus="setFocusedIndex" /> - </li> - <template v-if="isSearching"> - <template v-if="!listedConversationsLoading && searchResultsListedConversations.length > 0"> - <AppNavigationCaption :title="t('spreed', 'Open conversations')" /> - <Conversation v-for="item of searchResultsListedConversations" - :key="item.id" - :item="item" - :is-search-result="true" - @click="joinListedConversation(item)" /> + <li class="left-sidebar__list"> + <ul ref="scroller" + class="scroller" + @scroll="debounceHandleScroll"> + <AppNavigationCaption v-if="isSearching" + :title="t('spreed', 'Conversations')" /> + <li role="presentation"> + <ConversationsList ref="conversationsList" + :conversations-list="conversationsList" + :initialised-conversations="initialisedConversations" + :search-text="searchText" + @click-search-result="handleClickSearchResult" + @focus="setFocusedIndex" /> + </li> + <template v-if="isSearching"> + <template v-if="!listedConversationsLoading && searchResultsListedConversations.length > 0"> + <AppNavigationCaption :title="t('spreed', 'Open conversations')" /> + <Conversation v-for="item of searchResultsListedConversations" + :key="item.id" + :item="item" + :is-search-result="true" + @click="joinListedConversation(item)" /> + </template> + <template v-if="searchResultsUsers.length !== 0"> + <AppNavigationCaption :title="t('spreed', 'Users')" /> + <li v-if="searchResultsUsers.length !== 0" role="presentation"> + <ConversationsOptionsList :items="searchResultsUsers" + @click="createAndJoinConversation" /> + </li> + </template> + <template v-if="!showStartConversationsOptions"> + <AppNavigationCaption v-if="searchResultsUsers.length === 0" + :title="t('spreed', 'Users')" /> + <Hint v-if="contactsLoading" :hint="t('spreed', 'Loading')" /> + <Hint v-else :hint="t('spreed', 'No search results')" /> + </template> </template> - <template v-if="searchResultsUsers.length !== 0"> - <AppNavigationCaption :title="t('spreed', 'Users')" /> - <li v-if="searchResultsUsers.length !== 0" role="presentation"> - <ConversationsOptionsList :items="searchResultsUsers" - @click="createAndJoinConversation" /> - </li> - </template> - <template v-if="!showStartConversationsOptions"> - <AppNavigationCaption v-if="searchResultsUsers.length === 0" - :title="t('spreed', 'Users')" /> + <template v-if="showStartConversationsOptions"> + <template v-if="searchResultsGroups.length !== 0"> + <AppNavigationCaption :title="t('spreed', 'Groups')" /> + <li v-if="searchResultsGroups.length !== 0" role="presentation"> + <ConversationsOptionsList :items="searchResultsGroups" + @click="createAndJoinConversation" /> + </li> + </template> + + <template v-if="searchResultsCircles.length !== 0"> + <AppNavigationCaption :title="t('spreed', 'Circles')" /> + <li v-if="searchResultsCircles.length !== 0" role="presentation"> + <ConversationsOptionsList :items="searchResultsCircles" + @click="createAndJoinConversation" /> + </li> + </template> + + <AppNavigationCaption v-if="sourcesWithoutResults" + :title="sourcesWithoutResultsList" /> <Hint v-if="contactsLoading" :hint="t('spreed', 'Loading')" /> <Hint v-else :hint="t('spreed', 'No search results')" /> </template> - </template> - <template v-if="showStartConversationsOptions"> - <template v-if="searchResultsGroups.length !== 0"> - <AppNavigationCaption :title="t('spreed', 'Groups')" /> - <li v-if="searchResultsGroups.length !== 0" role="presentation"> - <ConversationsOptionsList :items="searchResultsGroups" - @click="createAndJoinConversation" /> - </li> - </template> - - <template v-if="searchResultsCircles.length !== 0"> - <AppNavigationCaption :title="t('spreed', 'Circles')" /> - <li v-if="searchResultsCircles.length !== 0" role="presentation"> - <ConversationsOptionsList :items="searchResultsCircles" - @click="createAndJoinConversation" /> - </li> - </template> - - <AppNavigationCaption v-if="sourcesWithoutResults" - :title="sourcesWithoutResultsList" /> - <Hint v-if="contactsLoading" :hint="t('spreed', 'Loading')" /> - <Hint v-else :hint="t('spreed', 'No search results')" /> - </template> - </div> + </ul> + </li> <Button v-if="!preventFindingUnread && unreadNum > 0" class="unread-mention-button" type="primary" @@ -506,6 +508,9 @@ export default { <style lang="scss" scoped> @import '../../assets/variables'; +.scroller { + padding: 0 4px 0 6px; +} .new-conversation { display: flex; @@ -521,7 +526,7 @@ export default { width: 100% !important; overflow-y: auto !important; overflow-x: hidden !important; - padding: 0 4px; + padding: 0; } .unread-mention-button { |