Skip to content

Commit

Permalink
Merge branch 'dev' into fix/selection-expand-with-shift
Browse files Browse the repository at this point in the history
  • Loading branch information
lumixraku authored Dec 3, 2024
2 parents 58c59a9 + 1de083c commit 6a534c1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class ConditionalFormattingViewModel extends Disposable {
*/
public markRuleDirty = (() => {
const rxItem = new Subject<{ unitId: string; subUnitId: string; cfId: string; isNeedResetPreComputingCache: boolean }>();
rxItem.pipe(bufferTime(100), filter((e) => !!e.length), map((list) => {
this.disposeWithMe(rxItem.pipe(bufferTime(100), filter((e) => !!e.length), map((list) => {
const set = new Set();
const result: typeof list = [];
list.forEach((item) => {
Expand All @@ -152,7 +152,7 @@ export class ConditionalFormattingViewModel extends Disposable {
list.forEach((item) => {
this._markRuleDirtyAtOnce(item.unitId, item.subUnitId, item.cfId, item.isNeedResetPreComputingCache);
});
});
}));
return (unitId: string, subUnitId: string, cfId: string, isNeedResetPreComputingCache: boolean = true) => {
rxItem.next({ unitId, subUnitId, cfId, isNeedResetPreComputingCache });
};
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/views/components/ribbon/Ribbon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ export function Ribbon(props: IRibbonProps) {
style={{
position: 'absolute',
top: -9999,
left: -9999,
opacity: 0,
left: 0,
right: 0,
// top: 0,
// left: 0,
// opacity: 1,
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/views/components/ribbon/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
border-bottom: 1px solid rgb(var(--border-color));

&-container {
flex: 1;
padding: 0 var(--padding-lg);
display: flex;
gap: var(--margin-xs);
Expand Down

0 comments on commit 6a534c1

Please sign in to comment.