Repository navigation
PDFileModal, PDFileExplorer: an even, aligned layout, a line under the toolbar, and button size and cancel icon settings - #366
Merged
Conversation
…e toolbar, and button size and cancel icon settings - PDFileExplorer: a line under the toolbar, on by default, drawn with --pd-file-explorer-toolbar-border (set it to none to leave it out) - PDFileExplorer: the toolbar is as tall as its buttons, and the splitter takes the height left, instead of both assuming 50px - PDFileExplorer: the top folder sits 0.5rem below what is above it and lines up with the toolbar's first button - PDFileModal: no body padding, so the panes run edge to edge, from the separator or the header line down to the footer line; the toolbar and the top folder line up with the title and the footer's buttons, 1rem in - PDFileModal: ButtonSize (default Medium) sets every button in the dialog, the explorer's toolbar included, and CancelButtonIconCssClass (default fas fa-fw fa-times) the icon on Cancel and on the overwrite confirmation's No - PDSplitter: the bar defaults to the theme's border colour (--bs-border-color), still overridable with --pd-splitter-gutter-bg - PDToolbar: a hidden first item, such as an Up button turned off, no longer leaves the next item indented - Demo and documentation for the new settings and the styling variable; bUnit tests for the defaults and the new settings
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| CodeStyle | 4 minor |
🟢 Metrics 0 complexity · 0 duplication
Metric Results Complexity 0 Duplication 0
🟢 Coverage 100.00% diff coverage · +0.00% coverage variation
Metric Results Coverage variation ✅ +0.00% coverage variation Diff coverage ✅ 100.00% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (96ff528) 19400 19269 99.32% Head commit (fc53d9a) 19406 (+6) 19275 (+6) 99.32% (+0.00%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#366) 6 6 100.00% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
AI Reviewer: run a review on demand. To trigger the first review automatically, go to your organization or repository integration settings. AI can make mistakes. Always validate suggestions.
TIP This summary will be updated as you push new changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The file dialog looked "not great" in every app that uses it: no line between the toolbar and the folders, the toolbar's line (once added) squashed against the buttons because the toolbar box was a fixed 50px around 54px of content, uneven spacing from the modal's body padding, panes that stopped short of the footer, and a splitter bar that stayed light grey in dark themes.
What changed
Layout (measured in the demo, Report Picker / Custom Open / restricted dialogs and the explorer page)
New, all with defaults that keep today's look where nothing is set
PDFileModal.ButtonSize(defaultMedium): every button in the dialog, the explorer's toolbar included.PDFileModal.CancelButtonIconCssClass(defaultfas fa-fw fa-times): Cancel, and No on the overwrite confirmation.--pd-file-explorer-toolbar-border: the line under the explorer's toolbar, on by default;noneleaves it out.Defaults that change
calc(100% - 50px)).PDFileModal, the body has no padding (p-0).PDSplitter's bar defaults tovar(--bs-border-color, #eee)rather than#eee;--pd-splitter-gutter-bgstill overrides it.PDToolbar: a hidden first item no longer leaves the next item indented.main.cssandmain.min.csswere updated by hand to matchmain.scss, as the Web Compiler extension was not available.Testing
PanoramicData.Blazor.slnxbuilds with no errors.PDFileModalTests(defaults unchanged;ButtonSizereaches the toolbar, footer and confirmation, and the cancel icon reaches Cancel and No)./pdfilemodalsand/pdfileexplorerby measuring element positions in the browser, in the dark theme.