Skip to content

Commit

Permalink
fix: compat for Nextcloud 30
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <[email protected]>
  • Loading branch information
pulsejet committed Sep 20, 2024
1 parent 0733139 commit 1b968b1
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 19 deletions.
12 changes: 2 additions & 10 deletions src/components/header/Searchbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -220,17 +220,9 @@ export default defineComponent({
header &,
#mobile-header & {
max-width: 100%;
// header is 50px; 5px gap on each side
margin: 5px 0 !important;
> * {
margin: 0 !important;
}
:deep input {
// header is 50px; 5px gap on each side
height: 40px !important;
}
:deep .input-field__icon {
height: 46px !important; // hack to center the icon
}
--default-clickable-area: 40px;
}
// Styling for flat input
Expand Down
10 changes: 6 additions & 4 deletions src/components/modal/AlbumPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@
</NcTextField>
</div>

<ul class="albums-container">
<div class="albums-container">
<AlbumsList ref="albumsList" :albums="filteredList" :link="false" @click="toggleAlbumSelection">
<template #extra="{ album }">
<div
class="check-circle-icon"
:class="{
'check-circle-icon': true,
'check-circle-icon--active': selection.has(album),
}"
@click="toggleAlbumSelection(album)"
>
<CheckIcon :size="20" />
</div>
</template>
</AlbumsList>
</ul>
</div>

<div class="actions">
<NcButton
Expand Down Expand Up @@ -269,6 +270,7 @@ export default defineComponent({
.albums-container {
height: 350px;
overflow-y: scroll;
.check-circle-icon {
border-radius: 50%;
Expand All @@ -282,7 +284,7 @@ export default defineComponent({
&--active {
border: 1px solid var(--color-primary);
background-color: var(--color-primary-default);
background-color: var(--color-primary);
color: var(--color-primary-text);
}
}
Expand Down
5 changes: 2 additions & 3 deletions src/components/modal/AlbumsList.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<ul class="albums-container">
<ul class="albums-list">
<NcListItem
v-for="album in albums"
class="album"
Expand Down Expand Up @@ -124,9 +124,8 @@ export default defineComponent({
</script>

<style lang="scss" scoped>
.albums-container {
.albums-list {
overflow-x: hidden;
overflow-y: scroll;
padding: 2px;
.album {
Expand Down
4 changes: 2 additions & 2 deletions src/components/modal/EditLocation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export default defineComponent({
.lat-lon {
display: flex;
padding: 4px;
margin-bottom: -10px;
margin-bottom: -14px;
> .coords {
display: inline-block;
Expand All @@ -261,7 +261,7 @@ export default defineComponent({
}
.osm-attribution {
margin: -3px 4px;
margin: 0 4px;
font-size: 0.65em;
a {
color: var(--color-primary);
Expand Down
1 change: 1 addition & 0 deletions src/components/modal/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<NcModal
class="memories-modal"
ref="modal"
:name="t('memories', 'Modal')"
:size="size"
:outTransition="true"
:style="{ width: isSidebarShown ? `calc(100% - ${sidebarWidth}px)` : null }"
Expand Down
1 change: 1 addition & 0 deletions src/components/viewer/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1318,6 +1318,7 @@ export default defineComponent({
:deep .button-vue--icon-only {
color: white;
background-color: transparent !important;
margin: 5px 2px; // NC 30
}
transition: opacity 0.2s ease-in-out;
Expand Down

0 comments on commit 1b968b1

Please sign in to comment.