mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 22:47:21 +00:00
Added a setting to change the size of the interface (#1136)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
c2b62c6dbd
commit
e0337a99bc
27 files changed
+1742
-27
No files matched your search
@@ -122,6 +122,46 @@
|
||||
color: var(--custom-icon-color) !important;
|
||||
}
|
||||
|
||||
/*
|
||||
WebKitGTK, the webview on Linux, leaves the zoom of the page out of the font size of an SVG
|
||||
element. MudBlazor sizes its icons with 1em of that font size, so they would keep their size while
|
||||
everything around them grows or shrinks with the interface size. The runtime therefore sets
|
||||
--svg-icon-zoom to its zoom on Linux, see interface_zoom.rs. The webviews of Windows and macOS zoom
|
||||
SVG elements like everything else, and the variable stays unset there. The :where keeps this as
|
||||
weak as MudBlazor's own rule, so that every more specific size still wins.
|
||||
*/
|
||||
.mud-icon-root:where(svg) {
|
||||
width: calc(1em * var(--svg-icon-zoom, 1));
|
||||
height: calc(1em * var(--svg-icon-zoom, 1));
|
||||
}
|
||||
|
||||
/*
|
||||
MudBlazor draws the thumb of a slider as a dot of 4px, scaled up five times. Zoomed to an interface
|
||||
size, the dot covers a fraction of a pixel, which the webview rounds to whole pixels before the
|
||||
scaling magnifies the error: the thumb turns into an uneven shape. These rules draw the thumb in its
|
||||
final size instead, with the shadows MudBlazor's scaling gave it. All sliders of the app have the
|
||||
medium size and the primary color.
|
||||
*/
|
||||
.mud-slider.mud-slider-medium .mud-slider-input::-webkit-slider-thumb {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-top: -8px;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.mud-slider.mud-slider-medium.mud-slider-primary .mud-slider-input::-webkit-slider-thumb {
|
||||
box-shadow: 0 5px 10px -5px rgba(var(--mud-palette-primary-rgb), 0.3);
|
||||
}
|
||||
|
||||
.mud-slider.mud-slider-medium.mud-slider-primary .mud-slider-input::-webkit-slider-thumb:hover {
|
||||
box-shadow: 0 5px 10px -5px rgba(var(--mud-palette-primary-rgb), 0.3), 0 0 0 5px rgba(var(--mud-palette-primary-rgb), 0.24);
|
||||
}
|
||||
|
||||
.mud-slider.mud-slider-medium.mud-slider-primary .mud-slider-input:focus-visible::-webkit-slider-thumb,
|
||||
.mud-slider.mud-slider-medium.mud-slider-primary .mud-slider-input:active::-webkit-slider-thumb {
|
||||
box-shadow: 0 5px 10px -5px rgba(var(--mud-palette-primary-rgb), 0.3), 0 0 0 10px rgba(var(--mud-palette-primary-rgb), 0.24);
|
||||
}
|
||||
|
||||
.improvedDiff .wikEdDiffFragment {
|
||||
background-color: initial !important;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
# v26.11.1, build 260 (2026-11-xx xx:xx UTC)
|
||||
- Added a setting for the size of the interface, which you find in the app settings. You can choose a size for each of your screens, and AI Studio switches to it when you move its window to another screen. Thanks, Paul Koudelka (`PaulKoudelka`), for this contribution.
|
||||
- Changed the size of AI Studio on laptop screens: it now appears in the same size on every laptop, whatever the scaling of your operating system. If you prefer the previous size, choose "System scaling" for the interface size in the app settings. Contributed by Paul Koudelka.
|
||||
- Fixed AI Studio becoming unusable when an update failed after its download. The app now restarts with the version you have installed, so you can simply try the update again.
|
||||
- Upgraded several libraries to improve security.
|
||||
- Upgraded Tauri to v2.12.5.
|
||||
Reference in new issue
Block a user