Skip to content

Commit

Permalink
fix: removing borders
Browse files Browse the repository at this point in the history
  • Loading branch information
aminaopio committed Dec 27, 2024
1 parent 93e2b07 commit 408adc9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions apps/docs/components/Playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export default function Playground() {
},
]);
const [url, setUrl] = useState(null);
let [loading] = useState(true);
const [color] = useState('var(--ifm-color-primary)');
const [selectedPreviewFile, setSelectedPreviewFile] = useState(null);
// const [resetPreviewFiles, setResetPreviewFiles] = useState(false);
Expand Down Expand Up @@ -420,10 +419,7 @@ export default function Playground() {
>
{isSidebarOpen && (!url || error) && (
<div {...stylex.props(styles.loading)}>
<ClipLoader
color={color}
size={50}
/>
<ClipLoader color={color} size={50} />
</div>
)}
{isSidebarOpen && url && !error && (
Expand Down Expand Up @@ -499,23 +495,23 @@ export default function Playground() {
>
{file.isEditing ? (
<input
type="text"
value={editingValue}
onChange={(e) => renameFile(e.target.value)}
onBlur={() => disableEditMode(index)}
onChange={(e) => renameFile(e.target.value)}
onKeyDown={(e) => {
if (e.key === 'Enter') disableEditMode(index);
}}
type="text"
value={editingValue}
{...stylex.props([
styles.tabInput,
activeFileIndex === index && styles.editingInput,
])}
/>
) : (
<input
value={file.name}
readOnly={true}
onDoubleClick={() => enableEditMode(index)}
readOnly={true}
value={file.name}
{...stylex.props(styles.tabInput)}
/>
)}
Expand Down Expand Up @@ -688,6 +684,7 @@ const styles = stylex.create({
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
borderStyle: 'none',
marginLeft: '10px',
backgroundColor: 'transparent',
cursor: 'pointer',
Expand Down Expand Up @@ -728,7 +725,7 @@ const styles = stylex.create({
directoryText: {
marginLeft: '8px',
textAlign: 'left',
flex: 1,
flex: '1',
},
tabList: {
display: 'flex',
Expand Down Expand Up @@ -764,6 +761,7 @@ const styles = stylex.create({
tabInput: {
flex: '1',
backgroundColor: 'transparent',
borderStyle: 'none',
color: 'inherit',
fontSize: '14px',
padding: '2px 4px',
Expand All @@ -784,6 +782,7 @@ const styles = stylex.create({
alignItems: 'center',
justifyContent: 'center',
marginLeft: '10px',
borderStyle: 'none',
backgroundColor: 'transparent',
cursor: 'pointer',
padding: '4px',
Expand Down Expand Up @@ -813,6 +812,7 @@ const styles = stylex.create({
width: '100%',
height: '100%',
backgroundColor: '#ffffff',
borderStyle: 'none',
},
loading: {
display: 'flex',
Expand Down

0 comments on commit 408adc9

Please sign in to comment.