diff --git a/src/adw-adaptive-preview.c b/src/adw-adaptive-preview.c index 9599eb190871b28621b7526fcd39d3a0162290be..ec64d9e0a96242f4ef8bbf2dc264345bccff1a03 100644 --- a/src/adw-adaptive-preview.c +++ b/src/adw-adaptive-preview.c @@ -361,6 +361,8 @@ allocate_screen_view (GtkWidget *widget, int child_width, child_height, available_height; GskTransform *transform; + available_height = height - top_bar_height - bottom_bar_height; + if (gtk_widget_get_request_mode (self->child_bin) == GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH) { gtk_widget_measure (self->child_bin, GTK_ORIENTATION_HORIZONTAL, -1, &child_width, NULL, NULL, NULL); @@ -373,8 +375,6 @@ allocate_screen_view (GtkWidget *widget, &child_height, NULL, NULL, NULL); } - available_height = height - top_bar_height - bottom_bar_height; - if (child_width > width || child_height > available_height) { g_warning ("Window contents don't fit: provided %d×%d, available %d×%d", child_width, child_height, width, available_height); diff --git a/src/adw-adaptive-preview.ui b/src/adw-adaptive-preview.ui index 49a33d7407a91fd5ba976048e491906170a624f0..f6f1fdd6708d7e2e8dc9c899c07200f78e0b9ea3 100644 --- a/src/adw-adaptive-preview.ui +++ b/src/adw-adaptive-preview.ui @@ -58,6 +58,7 @@ Rotate Left object-rotate-left-symbolic + Rotate Left center + + + sidebar-show-symbolic + Toggle Sidebar + + + @@ -158,8 +173,12 @@ - + + True + 24 @@ -202,7 +221,7 @@ - + diff --git a/src/stylesheet/widgets/_inspector.scss b/src/stylesheet/widgets/_inspector.scss index 0fd8274e31be34af0f6b498802b28292ac65716a..abfd2817a1bdfc79acd2423c11af299346aacb9e 100644 --- a/src/stylesheet/widgets/_inspector.scss +++ b/src/stylesheet/widgets/_inspector.scss @@ -12,6 +12,10 @@ adaptive-preview { background: var(--overview-bg-color); color: var(--overview-fg-color); + headerbar.adaptive-mode-flat { + @extend .flat; + } + .screen-view { box-shadow: 0 2px 8px 2px RGB(0 0 0 / 7%), 0 3px 20px 10px RGB(0 0 0 / 5%),