feat: implement mobile and desktop layouts for framework editing
- Added responsive design for the framework editing page, including mobile tabs and a grid layout for goals and slots on desktop. - Introduced state management for tab selection and layout detection based on screen size. - Enhanced user interface with a tabbed navigation system for better organization of content. - Updated styles in app.css to support new layout features and improve overall aesthetics.
This commit is contained in:
1 parent
17f0513821
commit
eade9af2fe
3 files changed
+137
-6
No files matched your search
@@ -2713,6 +2713,71 @@ a.analysis-split__nav-item {
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
|
||||
/* Rahmenprogramm bearbeiten — Mobile Tabs, Desktop Ziele | Slots nebeneinander */
|
||||
.framework-edit {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
@media (min-width: 1024px) {
|
||||
.framework-edit {
|
||||
max-width: min(1200px, 100%);
|
||||
}
|
||||
.framework-edit__tabbar {
|
||||
display: none !important;
|
||||
}
|
||||
.framework-edit__goals-slots {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16px;
|
||||
align-items: start;
|
||||
}
|
||||
/* breit: alle Bereiche sichtbar */
|
||||
.framework-edit__panel {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
.framework-edit__tabbar {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
margin-bottom: 14px;
|
||||
padding: 2px 0 12px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
.framework-edit__tabbar::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.framework-edit__tab {
|
||||
flex: 1 1 0;
|
||||
min-width: 0;
|
||||
padding: 10px 8px;
|
||||
border: 1px solid var(--border2);
|
||||
border-radius: 10px;
|
||||
background: var(--surface2);
|
||||
color: var(--text2);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
font-family: var(--font);
|
||||
}
|
||||
.framework-edit__tab--active {
|
||||
background: var(--accent-light);
|
||||
color: var(--accent-dark);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
.framework-edit__goals-slots {
|
||||
display: block;
|
||||
}
|
||||
@media (max-width: 1023px) {
|
||||
.framework-edit .framework-edit__panel:not(.framework-edit__panel--active) {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media print {
|
||||
.desktop-sidebar,
|
||||
.bottom-nav,
|
||||
|
||||
Reference in new issue
Block a user