adasd
This commit is contained in:
@@ -71,10 +71,12 @@ h1 {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
padding: 24px 24px 120px;
|
||||
}
|
||||
|
||||
.desktop-icons {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
|
||||
gap: 16px;
|
||||
@@ -226,7 +228,7 @@ h1 {
|
||||
}
|
||||
|
||||
.taskbar {
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
left: 24px;
|
||||
right: 24px;
|
||||
bottom: 24px;
|
||||
@@ -261,7 +263,7 @@ h1 {
|
||||
}
|
||||
|
||||
.start-menu {
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
left: 24px;
|
||||
bottom: 102px;
|
||||
z-index: 130;
|
||||
|
||||
@@ -16,29 +16,6 @@ final class WindowManager
|
||||
*/
|
||||
public function defaultWindows(): array
|
||||
{
|
||||
$defaults = ['welcome-center', 'public-dashboard'];
|
||||
$windows = [];
|
||||
|
||||
foreach ($defaults as $index => $appId) {
|
||||
$app = $this->registry->find($appId);
|
||||
|
||||
if ($app === null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$windows[] = [
|
||||
'window_id' => 'window-' . $appId,
|
||||
'app_id' => $appId,
|
||||
'title' => $app['title'],
|
||||
'state' => $index === 0 ? 'focused' : 'open',
|
||||
'x' => 72 + ($index * 48),
|
||||
'y' => 84 + ($index * 36),
|
||||
'width' => $app['default_width'] ?? 640,
|
||||
'height' => $app['default_height'] ?? 420,
|
||||
'content' => $app['summary'] ?? '',
|
||||
];
|
||||
}
|
||||
|
||||
return $windows;
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user