File tree Expand file tree Collapse file tree
apps/editor/src/views/panel/frontend Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ export const Panel = () => {
304304 < LayoutContext . Provider value = { layout_context_value } >
305305 < div className = { styles . container } >
306306 < div className = { styles . slot } >
307- < Layout are_links_dimmed = { active_view == 'main' } >
307+ < Layout >
308308 < div
309309 className = { cn ( styles . content , {
310310 [ styles [ 'content--hidden' ] ] : active_view != 'main'
Original file line number Diff line number Diff line change 2222 padding-left : 12px ;
2323 transition : var (--transition-duration-250 ) opacity
2424 var (--transition-timing-function );
25-
26- & --dimmed {
27- opacity : var (--disabled-opacity );
28-
29- & :hover {
30- opacity : 1 ;
31- }
32- }
3325 }
3426
3527 & __icon-button {
Original file line number Diff line number Diff line change @@ -6,11 +6,7 @@ import { use_compacting } from '@shared/hooks'
66import { LayoutContext } from '../../../contexts/LayoutContext'
77import { use_translation } from '../../../i18n/use-translation'
88
9- type Props = {
10- are_links_dimmed ?: boolean
11- }
12-
13- export const Footer : React . FC < Props > = ( props ) => {
9+ export const Footer : React . FC = ( ) => {
1410 const {
1511 can_undo,
1612 on_apply_click,
@@ -57,12 +53,7 @@ export const Footer: React.FC<Props> = (props) => {
5753 return (
5854 < >
5955 < div className = { styles . footer } ref = { container_ref } >
60- < div
61- ref = { left_ref }
62- className = { cn ( styles . footer__left , {
63- [ styles [ 'footer__left--dimmed' ] ] : props . are_links_dimmed
64- } ) }
65- >
56+ < div ref = { left_ref } className = { styles . footer__left } >
6657 < a
6758 className = { cn (
6859 styles [ 'footer__icon-button' ] ,
Original file line number Diff line number Diff line change @@ -3,14 +3,13 @@ import { Footer } from './Footer'
33
44type Props = {
55 children : React . ReactNode
6- are_links_dimmed ?: boolean
76}
87
98export const Layout : React . FC < Props > = ( props ) => {
109 return (
1110 < div className = { styles . container } >
1211 < div className = { styles . content } > { props . children } </ div >
13- < Footer are_links_dimmed = { props . are_links_dimmed } />
12+ < Footer />
1413 </ div >
1514 )
1615}
You can’t perform that action at this time.
0 commit comments