diff --git a/src/features/vcs/common.module.css b/src/features/vcs/common.module.css index 303a73453f..4074bde690 100644 --- a/src/features/vcs/common.module.css +++ b/src/features/vcs/common.module.css @@ -161,17 +161,22 @@ overflow: hidden; text-overflow: ellipsis; } -/* Checkable changes tree in the Shelve / Create Patch dialogs. */ +/* Checkable changes tree in the Shelve / Create Patch / Rollback dialogs. */ .fileTree { display: flex; + flex-direction: column; height: 260px; margin: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-small); + overflow: hidden; } .fileTreeView { flex: 1; min-width: 0; + min-height: 0; + /* Override Tree's `height: 100%`: WebKit doesn't resolve percentage heights against a flex-basis height. */ + height: auto; } .fileTreeRow { composes: fileRow; @@ -911,12 +916,18 @@ .comparisonTree { flex: 1; min-width: 0; + min-height: 0; + /* Stretch instead of Tree's `height: 100%`: WebKit doesn't resolve percentage heights against a flex-basis height. */ + height: auto; + align-self: stretch; border: 1px solid var(--border); } .comparisonWithDiff .comparisonTree { flex: 0 0 30%; } .comparisonDiff { + display: flex; + flex-direction: column; flex: 1; min-width: 0; min-height: 0; diff --git a/src/ui/Splitter.module.css b/src/ui/Splitter.module.css index afd29dda1d..53e10fa321 100644 --- a/src/ui/Splitter.module.css +++ b/src/ui/Splitter.module.css @@ -7,7 +7,8 @@ flex-direction: column; min-width: 0; min-height: 0; - height: 100%; + /* Stretch inside [data-panel]'s row flex box: `height: 100%` fails to resolve against a flex-basis height in WebKit. */ + align-self: stretch; } .handle { position: relative;