mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
fix width
This commit is contained in:
parent
7e56341884
commit
68bc2a3f96
5 changed files with 7 additions and 8 deletions
|
@ -17,7 +17,7 @@ const port = process.env.SERVER_PORT;
|
|||
const openAboutWindow = require('about-window').default;
|
||||
|
||||
const TIMEOUT_UPDATE = 600 * 1000;
|
||||
const MIN_WIDTH = 900;
|
||||
const MIN_WIDTH = 980;
|
||||
const MIN_HEIGHT = 640;
|
||||
|
||||
let isUpdating = false;
|
||||
|
|
|
@ -108,8 +108,8 @@ class HeaderMainSet extends React.Component<Props, {}> {
|
|||
let position = I.BlockPosition.Bottom;
|
||||
|
||||
if (fb) {
|
||||
if (fb.isTitle()) {
|
||||
const first = blockStore.getFirstBlock(rootId, 1, (it: I.Block) => { return it.isFocusable() && !it.isTitle(); });
|
||||
if (fb.isTextTitle()) {
|
||||
const first = blockStore.getFirstBlock(rootId, 1, (it: I.Block) => { return it.isFocusable() && !it.isTextTitle(); });
|
||||
if (first) {
|
||||
targetId = first.id;
|
||||
position = I.BlockPosition.Top;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import * as React from 'react';
|
||||
import { I, C } from 'ts/lib';
|
||||
import { I, C, SmileUtil } from 'ts/lib';
|
||||
import { Icon, Input, Button } from 'ts/component';
|
||||
import { commonStore } from 'ts/store';
|
||||
import { observer } from 'mobx-react';
|
||||
|
@ -102,7 +102,7 @@ class MenuObjectType extends React.Component<Props, State> {
|
|||
const name = this.ref.getValue();
|
||||
const { layout } = this.state;
|
||||
|
||||
C.ObjectTypeCreate({ name: name, layout: layout }, (message: any) => {
|
||||
C.ObjectTypeCreate({ name: name, layout: layout, iconEmoji: SmileUtil.random() }, (message: any) => {
|
||||
if (message.error.code) {
|
||||
return;
|
||||
};
|
||||
|
|
|
@ -384,8 +384,8 @@ class PageMainHistory extends React.Component<Props, State> {
|
|||
return months;
|
||||
};
|
||||
|
||||
ungroupData (groups: any[]): I.Version[] {
|
||||
let ret: I.Version[] = [] as I.Version[];
|
||||
ungroupData (groups: any[]): I.HistoryVersion[] {
|
||||
let ret: I.HistoryVersion[] = [] as I.HistoryVersion[];
|
||||
for (let month of groups) {
|
||||
for (let group of month.list) {
|
||||
ret = ret.concat(group.list);
|
||||
|
|
|
@ -38,7 +38,6 @@ class Keyboard {
|
|||
const rootId = this.isEditor() ? this.match.params.id : root;
|
||||
const isMainIndex = this.isMainIndex();
|
||||
const platform = Util.getPlatform();
|
||||
const isMainIndex = this.isMainIndex();
|
||||
|
||||
// Go back
|
||||
this.shortcut('backspace', e, (pressed: string) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue