Skip to content

Commit 022483a

Browse files
committed
allow trust editor to shrink better
fixes microsoft#122523
1 parent a1e2329 commit 022483a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/vs/workbench/contrib/workspace/browser/workspaceTrustEditor.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
user-select: text;
7575
display: flex;
7676
flex-direction: row;
77+
flex-flow: wrap;
7778
justify-content: space-evenly;
7879
}
7980

@@ -199,6 +200,8 @@
199200
.workspace-trust-limitations {
200201
width: 50%;
201202
max-width: 350px;
203+
min-width: 250px;
204+
flex: 1;
202205
}
203206

204207
/** Settings */

src/vs/workbench/contrib/workspace/browser/workspaceTrustEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export class WorkspaceTrustEditor extends EditorPane {
114114
const foregroundColor = theme.getColor(foreground);
115115
if (foregroundColor) {
116116
const fgWithOpacity = new Color(new RGBA(foregroundColor.rgba.r, foregroundColor.rgba.g, foregroundColor.rgba.b, 0.3));
117-
collector.addRule(`.workspace-trust-editor .workspace-trust-features .workspace-trust-limitations { border: 1px solid ${fgWithOpacity}; margin: 0px 4px; display: flex; flex-direction: column; padding: 10px 40px;}`);
117+
collector.addRule(`.workspace-trust-editor .workspace-trust-features .workspace-trust-limitations { border: 1px solid ${fgWithOpacity}; margin: 4px 4px; display: flex; flex-direction: column; padding: 10px 40px;}`);
118118
}
119119
}));
120120
}

0 commit comments

Comments
 (0)