mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-05 11:15:01 +03:00
The docs explorer grid shows the number of columns that the web masonry calculates from the width of the pane. A card has the width of its column and a height of 1.26 times that width. The last card of a row keeps its column width. Grid cards are 24 px apart. List rows are 12 px apart, and a group header has 12 px above and below it. The side padding follows the width of the pane, as on the web. The explorer row cache no longer depends on the grid mode or the width. A resize that changes the number of columns only splits the rows again. In a window that is less than 280 px high, the explorer controls wrap and become smaller, and the side padding is 12 px. Each control keeps its full width, so you can click it. The trash keeps its row keys until the document views change. The "Select all" button shows only in the select mode, as on the web. Escape or "Done" ends the select mode. The trash has no "Empty Trash" button, as on the web. To delete all trashed documents, use "Select all" and "Delete permanently". After "Clear" empties the selection, the trash stays in the select mode. Then the select bar disables "Restore" and "Delete permanently", and a click on a document title selects the document. The trash opens the read-only preview only outside the select mode.