mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-31 11:56:11 +03:00
feat: integrate additional actions on diagnostics tab
This commit is contained in:
@@ -1 +1,24 @@
|
||||
export function renderModal() {}
|
||||
import { renderButton } from '../button/renderButton';
|
||||
|
||||
export function renderModal(text: string) {
|
||||
return E(
|
||||
'div',
|
||||
{ class: 'pdk-partial-modal__body' },
|
||||
E('div', {}, [
|
||||
E('pre', { class: 'pdk-partial-modal__content' }, E('code', {}, text)),
|
||||
|
||||
E('div', { class: 'pdk-partial-modal__footer' }, [
|
||||
renderButton({
|
||||
classNames: ['cbi-button-apply'],
|
||||
text: 'Copy content',
|
||||
onClick: () => {},
|
||||
}),
|
||||
renderButton({
|
||||
classNames: ['cbi-button-remove'],
|
||||
text: 'Close modal',
|
||||
onClick: ui.hideModal,
|
||||
}),
|
||||
]),
|
||||
]),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,2 +1,20 @@
|
||||
// language=CSS
|
||||
export const styles = ``;
|
||||
export const styles = `
|
||||
|
||||
.pdk-partial-modal__body {}
|
||||
|
||||
.pdk-partial-modal__content {
|
||||
max-height: 70vh;
|
||||
overflow: scroll;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.pdk-partial-modal__footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.pdk-partial-modal__footer button {
|
||||
margin-left: 10px;
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user