Skip to content

Commit

Permalink
Updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DanishMehmood-bit committed Dec 4, 2023
1 parent 3756261 commit 55363aa
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 25 deletions.
2 changes: 1 addition & 1 deletion packages/apps/storybook/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ export const decorators = [
channel.on("DARK_MODE", setDark);
}, []);

return <ThemeProvider theme={dark ? "dark" : "light"} ><Story /></ThemeProvider>
return <ThemeProvider style={{ background: "transparent" }} theme={dark ? "dark" : "light"} ><Story /></ThemeProvider>
},
];
8 changes: 0 additions & 8 deletions packages/apps/storybook/src/create-imodel/CreateIModel.css

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import "./CreateIModel.css";

import {
ButtonBar,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/

.iac-overlay-container {
.iac-overlay-container {
position: fixed;
z-index: 99999;
background-color: rgba(0, 0, 0, 0.1);
Expand All @@ -25,7 +25,6 @@
.iac-imodel-properties-container {
display: flex;
flex-grow: 1;
justify-content: center;

>*:last-child {
margin-left: var(--iui-size-l);
Expand All @@ -37,16 +36,10 @@
flex-direction: column;
align-items: center;
flex-grow: 1;
width: auto;
max-width: 600px;

>*:not(:last-child) {
margin-bottom: var(--iui-size-m);
}

>.iac-model-wrapper-element {
width: 100%;
}
}

.iac-extent-inputs-container {
Expand All @@ -69,3 +62,8 @@
height: 100%;
justify-content: space-between;
}

.iac-model-wrapper-element {
width: 100%;
max-width: 600px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import "./BaseIModel.scss";

import {
Label,
LabeledInput,
ProgressRadial,
Text,
Expand Down Expand Up @@ -225,7 +226,7 @@ export function BaseIModelPage(props: BaseIModelProps) {
const PointInput = (label: string, coordinate: keyof iModelExtent) => {
return (
<div className="iui-input-container">
<div className="iui-label">{label}</div>
<Label>{label}</Label>
<div className="iac-extent-inputs-container">
<LabeledInput
label={updatedStrings.latitude}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const IModelThumbnail = ({
className={classNames("iac-thumbnail", className)}
style={{
cursor: onClick ? "pointer" : "auto",
width: "100%",
}}
id="base64image"
src={thumbnail ?? ""}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ export const IModelGhostTile = () => {
<Text
isSkeleton={true}
style={{
height: "100%",
width: "100%",
margin: 0,
borderRadius: "0",
}}
></Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
.iac-tile ._iui3-thumbnail-icon {
width: inherit;
height: inherit;
}

.iac-tile ._iui3-tile-thumbnail {
width: 100%;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import "./CreateVersionModal.scss";

import { useToaster } from "@itwin/itwinui-react";
import { Label, useToaster } from "@itwin/itwinui-react";
import React from "react";

import { NamedVersionClient } from "../../../clients/namedVersionClient";
Expand Down Expand Up @@ -81,15 +81,15 @@ export const CreateVersionModal = (props: CreateVersionModalProps) => {
onActionClick={onCreateClick}
>
<div className="iui-input-container">
<div className="iui-label">Latest included change</div>
<Label>Latest included change</Label>
<div className="iac-additional-info">
<span>#{changeset.index}</span>
<span>{new Date(changeset.pushDateTime).toLocaleString()}</span>
</div>
</div>
{latestVersion && (
<div className="iui-input-container">
<div className="iui-label">Latest Named Version</div>
<Label>Latest Named Version</Label>
<div className="iac-additional-info">
<span className="iac-cell-ellipsis">{latestVersion.name}</span>
<span>
Expand Down

0 comments on commit 55363aa

Please sign in to comment.