mirror of
https://github.com/chinchang/web-maker.git
synced 2025-03-22 03:29:42 +01:00
fixes
This commit is contained in:
parent
f9586441fe
commit
f04a0f3b72
@ -124,7 +124,7 @@ export function Profile({ user, logoutBtnHandler }) {
|
||||
{user?.isPro && currentSubscription ? (
|
||||
<img
|
||||
class="profile-modal__panda"
|
||||
src="/assets/pro-panda.png"
|
||||
src="assets/pro-panda.png"
|
||||
width="300"
|
||||
style="position:absolute;bottom:-3rem; right: -7rem;"
|
||||
/>
|
||||
|
@ -10,14 +10,16 @@ import { Text } from './Text';
|
||||
|
||||
const FREE_PUBLIC_ITEM_COUNT = 1;
|
||||
const BASE_URL = location.origin;
|
||||
|
||||
const TOGGLE_VISIBILITY_API = !window.location.origin.includes('localhost')
|
||||
? 'http://127.0.0.1:5001/web-maker-app/us-central1/toggleVisibility'
|
||||
: 'https://togglevisibility-ajhkrtmkaq-uc.a.run.app';
|
||||
export function Share({ user, item, onVisibilityChange, onLoginBtnClick }) {
|
||||
const [publicItemCount, setPublicItemCount] = useState(0);
|
||||
useEffect(() => {
|
||||
if (!user) return;
|
||||
window.db.getPublicItemCount(user.uid).then(c => {
|
||||
setPublicItemCount(c);
|
||||
console.log('public items', c);
|
||||
// console.log('public items', c);
|
||||
});
|
||||
}, []);
|
||||
|
||||
@ -30,7 +32,7 @@ export function Share({ user, item, onVisibilityChange, onLoginBtnClick }) {
|
||||
let res;
|
||||
try {
|
||||
res = await fetch(
|
||||
`http://127.0.0.1:5001/web-maker-app/us-central1/toggleVisibility?token=${token}&itemId=${item.id}`
|
||||
`${TOGGLE_VISIBILITY_API}?token=${token}&itemId=${item.id}`
|
||||
);
|
||||
} catch (e) {
|
||||
alertsService.add('Could not change visibility');
|
||||
|
@ -1153,7 +1153,7 @@ body > #demo-frame {
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 35vw;
|
||||
min-width: 35ch;
|
||||
min-width: 40ch;
|
||||
max-width: 60ch;
|
||||
padding: 20px 30px;
|
||||
z-index: 6;
|
||||
@ -2185,8 +2185,8 @@ while the theme CSS file is loading */
|
||||
.asset-manager__file-ext {
|
||||
text-transform: uppercase;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
bottom: 0.5rem;
|
||||
left: 1.4rem;
|
||||
letter-spacing: -1px;
|
||||
font-weight: 800;
|
||||
display: none;
|
||||
|
Loading…
x
Reference in New Issue
Block a user