diff --git a/lib/Db/TimelineQueryDays.php b/lib/Db/TimelineQueryDays.php index 2f708473..37741f02 100644 --- a/lib/Db/TimelineQueryDays.php +++ b/lib/Db/TimelineQueryDays.php @@ -23,7 +23,7 @@ const CTE_FOLDERS = // CTE to get all folders recursively in the given top folde *PREFIX*filecache f INNER JOIN *PREFIX*cte_folders c ON (f.parent = c.fileid - AND f.mimetype = (SELECT `id` FROM `*PREFIX*mimetypes` WHERE `mimetype` = "httpd/unix-directory") + AND f.mimetype = (SELECT `id` FROM `*PREFIX*mimetypes` WHERE `mimetype` = \'httpd/unix-directory\') AND f.fileid <> :excludedFolderId ) )'; diff --git a/lib/Db/TimelineQueryTags.php b/lib/Db/TimelineQueryTags.php index 45ad5edb..8a3b9bfd 100644 --- a/lib/Db/TimelineQueryTags.php +++ b/lib/Db/TimelineQueryTags.php @@ -61,7 +61,7 @@ trait TimelineQueryTags $query = $this->joinFilecache($query, $folder, true, false); // GROUP and ORDER by tag name - $query->groupBy('st.name'); + $query->groupBy('st.id'); $query->orderBy('st.name', 'ASC'); $query->addOrderBy('st.id'); // tie-breaker diff --git a/lib/Migration/Version400503Date20221101033144.php b/lib/Migration/Version400503Date20221101033144.php index dc20d4a5..33a412da 100644 --- a/lib/Migration/Version400503Date20221101033144.php +++ b/lib/Migration/Version400503Date20221101033144.php @@ -81,6 +81,6 @@ class Version400503Date20221101033144 extends SimpleMigrationStep public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { // Update oc_memories to set objectid equal to fileid for all rows - $this->dbc->executeQuery('UPDATE *PREFIX*memories SET objectid = CAST(fileid AS CHAR)'); + $this->dbc->executeQuery('UPDATE *PREFIX*memories SET objectid = CAST(fileid AS CHAR(64))'); } } diff --git a/src/App.vue b/src/App.vue index 06f8142e..493d750c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -270,6 +270,13 @@ body { max-height: 100vh; } +// Top bar is above everything else on mobile +#content-vue.has-top-bar { + @media (max-width: 1024px) { + z-index: 3000; + } +} + // Patch viewer to remove the title and // make the image fill the entire screen .viewer { diff --git a/src/components/SelectionManager.vue b/src/components/SelectionManager.vue index 288ca578..46de66c9 100644 --- a/src/components/SelectionManager.vue +++ b/src/components/SelectionManager.vue @@ -1,7 +1,7 @@