Fix layout when there is more space than needed to display file explorer (don't scale larger) or gallery (don't bottom align).

This commit is contained in:
2026-06-17 03:30:20 +00:00
parent d6304d0029
commit 4f646fb344
2 changed files with 76 additions and 68 deletions
+7
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="file-explorer">
<table v-if="props.documents.length || editing"> <table v-if="props.documents.length || editing">
<thead> <thead>
<tr> <tr>
@@ -70,6 +71,7 @@
</tbody> </tbody>
</table> </table>
<EmptyFolder v-else :documents="documents" :path="props.path" /> <EmptyFolder v-else :documents="documents" :path="props.path" />
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -547,9 +549,14 @@ const contextMenu = (ev: MouseEvent, doc: Doc) => {
</script> </script>
<style scoped> <style scoped>
.file-explorer {
height: 100%;
width: 100%;
}
table { table {
width: 100%; width: 100%;
table-layout: fixed; table-layout: fixed;
height: auto;
} }
thead tr { thead tr {
position: sticky; position: sticky;
+2 -1
View File
@@ -625,7 +625,8 @@ const contextMenu = (ev: MouseEvent, doc: Doc) => {
display: grid; display: grid;
gap: .5em; gap: .5em;
grid-template-columns: repeat(auto-fill, minmax(15em, 1fr)); grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
align-items: end; align-items: start;
align-content: start;
} }
.folder-indicator { .folder-indicator {
grid-column: 1 / -1; grid-column: 1 / -1;