create audio - hide actions (#243)

This commit is contained in:
Ilya Y 2023-09-29 09:46:15 +03:00 committed by GitHub
parent 6ae1bb70dc
commit 18ec665bb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 25 additions and 25 deletions

View File

@ -205,7 +205,6 @@ export const Editor = (props: Props) => {
placement: 'top',
getReferenceClientRect: () => {
const selectedElement = editor().view.dom.querySelector('.has-focus')
console.log('!!! selectedElement (blockquoteBubbleMenu):', selectedElement)
if (selectedElement) {
return selectedElement.getBoundingClientRect()
}
@ -225,7 +224,6 @@ export const Editor = (props: Props) => {
placement: 'top',
getReferenceClientRect: () => {
const selectedElement = editor().view.dom.querySelector('.has-focus')
console.log('!!! selectedElement (incutBubbleMenu):', selectedElement)
if (selectedElement) {
return selectedElement.getBoundingClientRect()
}

View File

@ -185,7 +185,7 @@
}
@include media-breakpoint-up(md) {
a,
span,
button {
padding: 0 0.4rem;
}
@ -250,8 +250,8 @@
}
.mainNavigationItemActive {
background: #000;
color: #fff !important;
background: var(--link-hover-background);
color: var(--link-hover-color);
}
.headerWithTitle.headerScrolledBottom {
@ -306,7 +306,9 @@
&::after,
&::before {
transform-origin: center !important;
transition: top 0.3s, transform 0.3s;
transition:
top 0.3s,
transform 0.3s;
}
&::after {
@ -338,7 +340,9 @@
.articleHeader,
.articleControls {
opacity: 0;
transition: opacity 0.3s, z-index 0s 0.3s;
transition:
opacity 0.3s,
z-index 0s 0.3s;
z-index: -1;
.headerScrolledBottom & {
@ -435,7 +439,9 @@
z-index: 1;
.headerWithTitle.headerScrolledBottom & {
transition: opacity 0.3s, z-index 0s 0.3s;
transition:
opacity 0.3s,
z-index 0s 0.3s;
opacity: 0;
z-index: -1;
}
@ -590,7 +596,7 @@
}
a:hover {
background-color: var(--link-hover-background) !important;
//background-color: var(--link-hover-background) !important;
}
}

View File

@ -184,16 +184,13 @@ export const Header = (props: Props) => {
</Show>
<div class={clsx(styles.mainNavigation, { [styles.fixed]: fixed() })}>
<ul class="view-switcher">
<li classList={{ 'view-switcher__item--selected': page().route === 'home' }}>
<a
classList={{ [styles.mainNavigationItemActive]: isZineVisible() }}
onMouseOver={() => toggleSubnavigation(true, setIsZineVisible)}
onMouseOut={hideSubnavigation}
href={getPagePath(router, 'home')}
>
{t('zine')}
</a>
</li>
<Link
onMouseOver={() => toggleSubnavigation(true, setIsZineVisible)}
onMouseOut={() => hideSubnavigation}
routeName="home"
active={isZineVisible()}
body={t('zine')}
/>
<Link
onMouseOver={() => toggleSubnavigation(true, setIsFeedVisible)}
onMouseOut={() => hideSubnavigation}

View File

@ -16,13 +16,13 @@ export const Link = (props: Props) => {
const { page } = useRouter()
const isSelected = page().route === props.routeName
return (
<li classList={{ 'view-switcher__item--selected': isSelected }}>
<li classList={{ 'view-switcher__item--selected': page().route === props.routeName }}>
<ConditionalWrapper
condition={!isSelected && Boolean(props.routeName)}
wrapper={(children) => <a href={getPagePath(router, props.routeName)}>{children}</a>}
>
<span
class={clsx('cursorPointer', { [styles.mainNavigationItemActive]: props.active })}
class={clsx('cursorPointer linkReplacement', { [styles.mainNavigationItemActive]: props.active })}
onMouseOver={props.onMouseOver}
onMouseOut={props.onMouseOut}
>

View File

@ -231,9 +231,6 @@ export const EditView = (props: Props) => {
setIsLeadVisible(true)
}
createEffect(() => {
console.log("!!! props.shout.layout !== 'audio':", props.shout.layout)
})
return (
<>
<div class={styles.container}>

View File

@ -91,7 +91,7 @@ export const FeedView = () => {
options.order_by = orderBy
}
if (routesWithAuthGuard.has(page().route) && isAuthenticated()) {
if (isAuthenticated()) {
return loadMyFeed(options)
}

View File

@ -619,6 +619,7 @@ figure {
}
a,
.linkReplacement,
button {
border-bottom: 2px solid #fff;
color: var(--link-color);
@ -635,6 +636,7 @@ figure {
font-weight: bold;
a,
.linkReplacement,
button {
border-bottom: 2px solid #000;
color: #000;