Skip to content

Commit bdad96f

Browse files
ergunshDevtools-frontend LUCI CQ
authored andcommitted
[AiAssistance] Update FRE disclaimer dialog's sizing behavior
This CL: * Updates the content itself to have a width. * Removes setting width / height in the dialog itself and continuing with MEASURE_CONTENT. This would allow the content to have a fixed width and an adjustable height based on its contents. Fixed: 404234931 Change-Id: I1116689699978efb3e9d37911b74d0e1b2da8147 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6368841 Commit-Queue: Ergün Erdoğmuş <[email protected]> Auto-Submit: Ergün Erdoğmuş <[email protected]> Commit-Queue: Wolfgang Beyer <[email protected]> Reviewed-by: Wolfgang Beyer <[email protected]>
1 parent 35f3849 commit bdad96f

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

front_end/panels/common/common.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77

88
.fre-disclaimer {
9+
width: var(--sys-size-33);
910
padding: var(--sys-size-9);
1011

1112
header {

front_end/panels/common/common.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ export class FreDialog {
117117
result.resolve(false);
118118
});
119119
dialog.setSizeBehavior(UI.GlassPane.SizeBehavior.MEASURE_CONTENT);
120-
dialog.setMaxContentSize(new UI.Geometry.Size(448, 600));
121120
dialog.setDimmed(true);
122121
dialog.show();
123122

0 commit comments

Comments
 (0)