diff --git a/README.md b/README.md index 80558c9..6c6c9e9 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,6 @@ Szkielet komponentu Joomla 6 do gromadzenia pytań testowych. ## Instalacja -W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.8.1). +W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.8.2). Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**. diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.8.2.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.8.2.sql new file mode 100644 index 0000000..5b6eac9 --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.8.2.sql @@ -0,0 +1 @@ +-- No database changes required for version 1.8.2. diff --git a/com_testquestions.xml b/com_testquestions.xml index d807453..5bcbe31 100644 --- a/com_testquestions.xml +++ b/com_testquestions.xml @@ -4,7 +4,7 @@ 2026-10-14 Komponent GNU General Public License version 2 or later - 1.8.1 + 1.8.2 COM_TESTQUESTIONS_DESCRIPTION com_testquestions Komponent\Component\Testquestions diff --git a/components/com_testquestions/media/egzamin.css b/components/com_testquestions/media/egzamin.css index f55c663..a3d2df0 100644 --- a/components/com_testquestions/media/egzamin.css +++ b/components/com_testquestions/media/egzamin.css @@ -68,6 +68,31 @@ font-size: inherit; } +.com-testquestions .question-header { + display: flex; + align-items: flex-start; + gap: .5rem; +} + +.com-testquestions .question-number { + flex: 0 0 auto; + white-space: nowrap; + font-weight: 700; +} + +.com-testquestions .question-text { + flex: 1 1 auto; + min-width: 0; +} + +.com-testquestions .question-text > :first-child { + margin-top: 0; +} + +.com-testquestions .question-text > :last-child { + margin-bottom: 0; +} + .com-testquestions .odp, .com-testquestions .odpp, .com-testquestions .odpu, diff --git a/components/com_testquestions/tmpl/questions/default.php b/components/com_testquestions/tmpl/questions/default.php index 1f46bf7..aa3f32c 100644 --- a/components/com_testquestions/tmpl/questions/default.php +++ b/components/com_testquestions/tmpl/questions/default.php @@ -36,7 +36,12 @@ use Joomla\CMS\HTML\HTMLHelper;
items as $number => $item) : ?>
-

question; ?>

+
+
+ +
question; ?>
+
+
image) : ?>
diff --git a/egzamin.css b/egzamin.css index eef34b6..07e1c66 100644 --- a/egzamin.css +++ b/egzamin.css @@ -147,3 +147,20 @@ div.odpup .com-testquestions .odpup { box-sizing: border-box; } + +.com-testquestions .question-header { + display: flex; + align-items: flex-start; + gap: .5rem; +} + +.com-testquestions .question-number { + flex: 0 0 auto; + white-space: nowrap; + font-weight: 700; +} + +.com-testquestions .question-text { + flex: 1 1 auto; + min-width: 0; +}