Skip to content

Commit

Permalink
Fixed issue with resizing columns
Browse files Browse the repository at this point in the history
  • Loading branch information
alima-webdev committed Oct 30, 2024
1 parent fbfbb12 commit 0224ed2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion addon/chrome/content/modal/preferences.xhtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div>
<form id="status-form">
<div class="row">
<div class="settings-row">
<div class="col">
<!-- Label -->
<div class="form-field">
Expand Down
2 changes: 1 addition & 1 deletion addon/chrome/content/modal/report.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Total of Studies and Reports:
<strong><span id="included-total"></span></strong>
</div>
<div class="row">
<div class="settings-row">
<div class="col">
<div class="form-field">
<label class="muted" for="included-studies"
Expand Down
2 changes: 1 addition & 1 deletion src/styles/modules/layout.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.row {
.settings-row {
display: flex;
flex-direction: row;
gap: 1rem;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/styles.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import "./modules/colors.scss";
@import "./modules/global.scss";
@import "./modules/layout.scss";
// @import "./modules/layout.scss";
@import "./modules/form.scss";
@import "./modules/modal.scss";
@import "./modules/itemtree.scss";
Expand Down
6 changes: 4 additions & 2 deletions src/ui/pane/columns/reason.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { Keystroke } from "../../form/keystrokeInput";
import { log } from "../../../utils/devtools";

// Init Reason Column
export function initReasonColumn() {
export async function initReasonColumn() {
const columnReasonId = "reason";
const getReasonColumnHook = (
field: string,
Expand All @@ -33,12 +33,14 @@ export function initReasonColumn() {

const columnReasonOptions = {};
const columnReasonName: string = getString("reason-column-header");
ztoolkit.ItemTree.register(
await ztoolkit.ItemTree.register(
columnReasonId,
columnReasonName,
getReasonColumnHook,
columnReasonOptions,
);

await ztoolkit.ItemTree.refresh();
}

// Context Menu
Expand Down
6 changes: 4 additions & 2 deletions src/ui/pane/columns/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { getString } from "../../../utils/locale";
import { allStatuses } from "../../../lib/global";
import { log } from "../../../utils/devtools";

export function initStatusColumn() {
export async function initStatusColumn() {
const columnId = "status";
const getStatusColumnHook = (
field: string,
Expand Down Expand Up @@ -49,12 +49,14 @@ export function initStatusColumn() {
const columnOptions = { renderCell: renderStatusCell };
const columnName = getString("status-column-header");

ztoolkit.ItemTree.register(
await ztoolkit.ItemTree.register(
columnId,
columnName,
getStatusColumnHook,
columnOptions,
);

await ztoolkit.ItemTree.refresh();
}

export function getStatusContextMenu() {
Expand Down

0 comments on commit 0224ed2

Please sign in to comment.