File tree Expand file tree Collapse file tree
apps/editor/src/views/prompt/frontend
components/editor/prompt/Tabs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 flex-shrink : 0 ;
1919 }
2020
21- @include is- landscape {
21+ @include landscape {
2222 height : auto ;
2323 }
2424}
4141
4242 & --prompt {
4343 flex : 1.5 ;
44+ @include modern-ui {
45+ margin-right : -10px ;
46+ }
4447
4548 .content {
4649 padding-bottom : 8px ;
Original file line number Diff line number Diff line change 1111 padding : 0 10px ;
1212 }
1313
14- @include is- landscape {
14+ @include landscape {
1515 height : auto ;
1616 align-items : flex-start ;
1717 padding : unset ;
18- margin : 12 px 0 0 12px ;
18+ margin : 6 px 0 0 12px ;
1919
2020 @include modern-ui {
21- margin : 10px 0 0 10px ;
21+ padding : unset ;
22+ margin : 6px 0 0 10px ;
2223 }
2324 }
2425
2829 padding : 4px 0 ;
2930 gap : 4px ;
3031
31- @include is- landscape {
32+ @include landscape {
3233 flex-direction : column ;
3334 align-items : flex-start ;
3435 padding : 0 ;
Original file line number Diff line number Diff line change 11import { useState , useEffect } from 'react'
22
3+ const MIN_WIDTH = 450
4+
35export const use_is_landscape = ( ) => {
46 const [ is_landscape , set_is_landscape ] = useState (
5- window . innerWidth > window . innerHeight && window . innerWidth >= 400
7+ window . innerWidth > window . innerHeight && window . innerWidth >= MIN_WIDTH
68 )
79
810 useEffect ( ( ) => {
911 const handle_resize = ( ) => {
1012 set_is_landscape (
11- window . innerWidth > window . innerHeight && window . innerWidth >= 400
13+ window . innerWidth > window . innerHeight && window . innerWidth >= MIN_WIDTH
1214 )
1315 }
1416
Original file line number Diff line number Diff line change 33 justify-content : space-between ;
44 align-items : center ;
55 gap : 14px ;
6- margin : 0 12px ;
6+ padding : 0 12px ;
77 border-bottom : 1px solid var (--cwc-red-background );
88
99 @include modern-ui {
10+ padding : 0 ;
1011 margin : 0 10px ;
1112 }
1213
1314 & __list {
1415 display : flex ;
1516 align-items : center ;
1617 gap : 4px ;
17- margin-bottom : -1px ;
1818 }
1919
2020 & __tab {
2121 @include accent-font ;
2222 font-size : 16px ;
23- padding : 4px 8px 3 px 8px ;
23+ padding : 4px 8px 2 px 8px ;
2424 display : flex ;
2525 align-items : center ;
2626 text-transform : none ;
3535 color : var (--cwc-text-color );
3636 }
3737
38- & :focus-visible {
39- outline : 1px solid var (--vscode-focusBorder );
40- outline-offset : -1px ;
41- }
42-
4338 & --active {
4439 color : var (--cwc-red-foreground );
45- border-bottom-color : var (--cwc-red-background );
4640 background-color : var (--cwc-red-background );
4741
4842 & :hover {
Original file line number Diff line number Diff line change 1010 }
1111}
1212
13- @mixin is- landscape {
14- @media (orientation : landscape ) and (min-width : 400 px ) {
13+ @mixin landscape {
14+ @media (orientation : landscape ) and (min-width : 450 px ) {
1515 @content ;
1616 }
1717}
You can’t perform that action at this time.
0 commit comments