Compare commits
No commits in common. "3dc2196f1a841421ad274309bcbe05bc12f2b9cf" and "591a930bb677c7d60d23d9b66ba5250012715b9b" have entirely different histories.
3dc2196f1a
...
591a930bb6
6 changed files with 13 additions and 15 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://json.schemastore.org/package",
|
||||
"name": "tutu",
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.6",
|
||||
"description": "",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
|
|
|
@ -60,13 +60,5 @@
|
|||
top: unset;
|
||||
transform: translateX(-50%);
|
||||
bottom: 0;
|
||||
|
||||
@media (max-width: 560px) {
|
||||
& {
|
||||
transform: none;
|
||||
height: unset;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,14 +1,19 @@
|
|||
import {
|
||||
children,
|
||||
createEffect,
|
||||
createRenderEffect,
|
||||
createSignal,
|
||||
onCleanup,
|
||||
onMount,
|
||||
startTransition,
|
||||
useTransition,
|
||||
type ChildrenReturn,
|
||||
type ParentComponent,
|
||||
type ResolvedChildren,
|
||||
} from "solid-js";
|
||||
import styles from "./BottomSheet.module.css";
|
||||
import { useHeroSignal } from "../platform/anim";
|
||||
import { makeEventListener } from "@solid-primitives/event-listener";
|
||||
|
||||
export type BottomSheetProps = {
|
||||
open?: boolean;
|
||||
|
|
|
@ -172,7 +172,6 @@ const TimelinePanel: Component<{
|
|||
client={props.client}
|
||||
expanded={item.id === expandedThreadId() ? 1 : 0}
|
||||
onExpandChange={(x) => {
|
||||
setTyping(false)
|
||||
if (item.id !== expandedThreadId()) {
|
||||
setExpandedThreadId((x) => (x ? undefined : item.id));
|
||||
} else if (x === 2) {
|
||||
|
@ -424,6 +423,11 @@ const Home: ParentComponent = (props) => {
|
|||
</Toolbar>
|
||||
</AppBar>
|
||||
}
|
||||
fab={
|
||||
<Fab color="secondary">
|
||||
<CreateTootIcon />
|
||||
</Fab>
|
||||
}
|
||||
>
|
||||
<TimeSourceProvider value={now}>
|
||||
<Show when={!!client()}>
|
||||
|
|
|
@ -109,10 +109,8 @@ const MediaAttachmentGrid: Component<{
|
|||
src={item.url || undefined}
|
||||
style={style()}
|
||||
onLoadedMetadata={[setLoaded, true]}
|
||||
autoplay={false}
|
||||
autoplay={true}
|
||||
controls
|
||||
playsinline /* or safari on iOS will play in full-screen */
|
||||
loop
|
||||
/>
|
||||
);
|
||||
|
||||
|
|
|
@ -183,8 +183,7 @@ function randomChoose<T extends any[]>(
|
|||
rn: number,
|
||||
K: T,
|
||||
): T extends Array<infer E> ? E : never {
|
||||
const idx = Math.floor(rn * K.length);
|
||||
console.log(idx, K.length);
|
||||
const idx = Math.round(rn * K.length);
|
||||
return K[idx];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue